org.beanlet
Interface BeanletContext<T>

Type Parameters:
T - the beanlet type.

public interface BeanletContext<T>

Provides beanlet instances access to their runtime context.

The BeanletContext exposes information on the beanlet's definition through the BeanletMetaData interface. Additionally, beanlets can obtain the BeanletReference, which is associated with beanlet method calls.

An instance of the BeanletContext can only be obtained through dependency injection.

See Also:
Inject

Method Summary
 BeanletMetaData<T> getBeanletMetaData()
          Returns beanlet definition information for the underlying beanlet.
 BeanletReference<T> reference()
          Returns the beanlet reference that is associated with the current call.
 

Method Detail

getBeanletMetaData

BeanletMetaData<T> getBeanletMetaData()
Returns beanlet definition information for the underlying beanlet.

Returns:
meta data for the given underlying beanlet.

reference

BeanletReference<T> reference()
                              throws BeanletStateException
Returns the beanlet reference that is associated with the current call.

Throws:
BeanletStateException - thrown if no reference is associated with current call. Note that references are only associated with calls on proxy methods, or event executions for non static beanlets.


Copyright © 2006-2012. All Rights Reserved.