org.beanlet
Interface BeanletMetaData<T>

Type Parameters:
T - the beanlet type.
All Superinterfaces:
AnnotatedElement, MetaData

public interface BeanletMetaData<T>
extends MetaData

Provides information on the beanlet definition.


Method Summary
 String getBeanletName()
          Returns canonical name of the beanlet.
 ClassLoader getClassLoader()
          Returns the classloader associated with the deployment of this beanlet.
 List<Class<?>> getInterfaces()
          Returns a list of additional interfaces that are exposed by this beanlet.
 List<MetaData> getMetaData()
          Returns a list of meta data objects for this beanlet.
<M extends MetaData>
List<M>
getMetaData(Class<M> metaDataType)
          Returns a list of meta data objects of the specified type.
 Class<T> getType()
          Returns the beanlet type.
 boolean isMetaDataPresent(Class<? extends MetaData> metaDataType)
          Returns true if the specified meta data type is available for this beanlet.
 boolean isProxy()
          Returns true if this is a proxy beanlet, false otherwise.
 boolean isStatic()
          Returns true if this component is created from a static context.
 boolean isVanilla()
          Returns true if this is a vanilla beanlet, false otherwise.
 
Methods inherited from interface org.beanlet.MetaData
getDescription
 
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
 

Method Detail

getBeanletName

String getBeanletName()
Returns canonical name of the beanlet.

Returns:
canonical name of the beanlet.

getType

Class<T> getType()
Returns the beanlet type. This can either be a class or an interface.

Returns:
beanlet type.

getClassLoader

ClassLoader getClassLoader()
Returns the classloader associated with the deployment of this beanlet. This is not necessarily the classloader that loaded the beanlet type.

Returns:
classloader associated with this beanlet.

getInterfaces

List<Class<?>> getInterfaces()

Returns a list of additional interfaces that are exposed by this beanlet.

Note that this list is empty for non-proxy beanlets.

Returns:
list of interfaces exposed by beanlet.

isProxy

boolean isProxy()

Returns true if this is a proxy beanlet, false otherwise.

Proxy beanlets have the ability to expose interfaces that are not implemented by the type. These interfaces are returned by getInterfaces. Furthermore, proxy beanlets allow method calls to be intercepted by beanlet interceptors.

Returns:
true if this is a proxy beanlet.

isVanilla

boolean isVanilla()

Returns true if this is a vanilla beanlet, false otherwise.

Vanilla beanlets directly expose their beanlet instances and thus their type, as specified by getType. Proxy vanilla beanlets are implemented by dynamically subclassing the type adding the proxying logic.

Returns:
true if this is a vanilla beanlet.

isStatic

boolean isStatic()
Returns true if this component is created from a static context.


isMetaDataPresent

boolean isMetaDataPresent(Class<? extends MetaData> metaDataType)
Returns true if the specified meta data type is available for this beanlet.

Returns:
true if meta data is available for specified type.

getMetaData

<M extends MetaData> List<M> getMetaData(Class<M> metaDataType)
Returns a list of meta data objects of the specified type.

Returns:
list of specified meta data objects for beanlet.

getMetaData

List<MetaData> getMetaData()
Returns a list of meta data objects for this beanlet.

Returns:
list of meta data objects for beanlet.


Copyright © 2006-2012. All Rights Reserved.