Package org.coliper.ibean.proxy
Class IBeanContext<T>
- java.lang.Object
-
- org.coliper.ibean.proxy.IBeanContext<T>
-
public class IBeanContext<T> extends Object
IBeanContextis provided toExtensionHandlers to provide them information about the context of a IBean method call. Only used inExtensionHandlercontext, for example inExtensionHandler.handleExtendedInterfaceCall(IBeanContext, IBeanFieldAccess, Object, java.lang.reflect.Method, Object[])
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxyIBeanFactorybeanFactory()Provides the factory that created the IBean.BeanStylebeanStyle()Provides theBeanStyleof the IBean.BeanStyleHandlerbeanStyleHandler()Provides theBeanStyleHandlerused by the bean factory to deal with the givenBeanStyle.IBeanTypeMetaInfo<T>metaInfo()Provides the meta information about the IBean.ToStringStyletoStringStyle()Provides the style used in IBean'sObject.toString()method.
-
-
-
Method Detail
-
beanFactory
public ProxyIBeanFactory beanFactory()
Provides the factory that created the IBean. Especially useful if theExtensionHandleritself needs to create other IBeans.- Returns:
- the factory which is handling the method call this context relates to
-
metaInfo
public IBeanTypeMetaInfo<T> metaInfo()
Provides the meta information about the IBean.- Returns:
- meta information about bean type
T
-
toStringStyle
public ToStringStyle toStringStyle()
Provides the style used in IBean'sObject.toString()method.- Returns:
- the
ToStringStyle
-
beanStyle
public BeanStyle beanStyle()
Provides theBeanStyleof the IBean.- Returns:
- the bean style this bean complies to
-
beanStyleHandler
public BeanStyleHandler beanStyleHandler()
Provides theBeanStyleHandlerused by the bean factory to deal with the givenBeanStyle.- Returns:
- the factory specific handler for the given bean style
-
-