|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.metadata.ClassAnnotationMetadata
public class ClassAnnotationMetadata
This class represents the annotation metadata of a Bean.
From this class, we can access to all methods of a bean with its associated information.
Field Summary | |
---|---|
private JInterceptors |
annotationInterceptors
List of annotation interceptors. |
private ApplicationException |
applicationException
Application exception annotation. |
private MethodAnnotationMetadata |
aroundInvokeMethodMetadata
Method used for @ AroundInvoke on this class (only one per class). |
private java.lang.String |
className
Name of the class associated to this metadata. |
private ClassType |
classType
The type of the class. |
private EjbJarAnnotationMetadata |
ejbJarAnnotationMetadata
Parent meta data. |
private java.util.Map<JField,FieldAnnotationMetadata> |
fieldsAnnotationMetadata
List of field annotations metadata. |
private java.util.List<JClassInterceptor> |
globalEasyBeansInterceptors
EasyBeans global interceptors. These interceptors correspond to a list of interceptors that need to be present first on all methods. |
private java.lang.String[] |
interfaces
Interfaces of this clas. |
private JAnnotationEJB |
jAnnotationEJB
Object representing @ EJB annotation. |
private java.util.List<JAnnotationEJB> |
jAnnotationEJBs
Object representing @ EJBs annotation. |
private JAnnotationResource |
jAnnotationResource
Object representing @ Resource annotation. |
private java.util.List<JAnnotationResource> |
jAnnotationResources
Object representing @ Resources annotation. |
private JLocal |
jLocal
List of local interfaces. |
private JMessageDriven |
jMessageDriven
Message Driven attribute. |
private JRemote |
jRemote
List of remote interfaces. |
private java.lang.String |
localHome
Local Home. |
private static JLog |
logger
Logger. |
private java.util.Map<JMethod,MethodAnnotationMetadata> |
methodsAnnotationMetadata
List of method annotations metadata. |
private MethodAnnotationMetadata |
postActivateMethodMetadata
Method used for @ PostActivate on this class (only one per class). |
private MethodAnnotationMetadata |
postConstructMethodMetadata
Method used for @ PostConstruct on this class (only one per class). |
private MethodAnnotationMetadata |
preDestroyMethodMetadata
Method used for @ PreDestroy on this class (only one per class). |
private MethodAnnotationMetadata |
prePassivateMethodMetadata
Method used for @ PrePassivate on this class (only one per class). |
private java.lang.String |
remoteHome
Remote Home. |
private java.lang.String |
superName
Superclass name. |
private TransactionAttributeType |
transactionAttributeType
Transaction attribute type (default = required). |
private TransactionManagementType |
transactionManagementType
Transaction management type (default = container). |
private java.lang.String |
unQualifiedBeanName
Unqualified name of the bean. |
private java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
userInterceptors
User interceptors. |
Constructor Summary | |
---|---|
ClassAnnotationMetadata(java.lang.String className,
EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
Constructor. |
Method Summary | |
---|---|
void |
addFieldAnnotationMetadata(FieldAnnotationMetadata fieldAnnotationMetadata)
Add field annotation metadata for a given Bean. |
void |
addMethodAnnotationMetadata(MethodAnnotationMetadata methodAnnotationMetadata)
Add method annotation metadata for a given Bean. |
private static void |
concatStringBuilder(java.lang.String name,
java.lang.Object object,
java.lang.StringBuilder sb)
Adds an entry to the given StringBuilder. |
JInterceptors |
getAnnotationInterceptors()
|
ApplicationException |
getApplicationException()
|
MethodAnnotationMetadata |
getAroundInvokeMethodMetadata()
|
java.lang.String |
getClassName()
|
EjbJarAnnotationMetadata |
getEjbJarAnnotationMetadata()
|
FieldAnnotationMetadata |
getFieldAnnotationMetadata(JField jField)
|
java.util.Collection<FieldAnnotationMetadata> |
getFieldAnnotationMetadataCollection()
Get collections of fields annotation metadata. |
java.util.List<JClassInterceptor> |
getGlobalEasyBeansInterceptors()
|
java.lang.String[] |
getInterfaces()
|
JAnnotationEJB |
getJAnnotationEJB()
|
java.util.List<JAnnotationEJB> |
getJAnnotationEJBs()
|
JAnnotationResource |
getJAnnotationResource()
|
java.util.List<JAnnotationResource> |
getJAnnotationResources()
|
JMessageDriven |
getJMessageDriven()
|
java.lang.String |
getLocalHome()
|
JLocal |
getLocalInterfaces()
|
MethodAnnotationMetadata |
getMethodAnnotationMetadata(JMethod jMethod)
|
java.util.Collection<MethodAnnotationMetadata> |
getMethodAnnotationMetadataCollection()
Get collections of methods annotation metadata. |
MethodAnnotationMetadata |
getPostActivateMethodMetadata()
|
MethodAnnotationMetadata |
getPostConstructMethodMetadata()
|
MethodAnnotationMetadata |
getPreDestroyMethodMetadata()
|
MethodAnnotationMetadata |
getPrePassivateMethodMetadata()
|
java.lang.String |
getRemoteHome()
|
JRemote |
getRemoteInterfaces()
|
java.lang.String |
getSuperName()
|
TransactionAttributeType |
getTransactionAttributeType()
|
TransactionManagementType |
getTransactionManagementType()
|
java.lang.String |
getUnQualifiedBeanName()
|
java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
getUserEasyBeansInterceptors()
|
boolean |
isBean()
|
boolean |
isInterceptor()
Is that this class is an interceptor class ? |
boolean |
isMdb()
|
boolean |
isSession()
|
boolean |
isStateful()
|
boolean |
isStateless()
|
void |
setAnnotationsInterceptors(JInterceptors annotationInterceptors)
Sets the object representing the @ Interceptors annotation. |
void |
setApplicationException(ApplicationException applicationException)
Sets the object representing the @ ApplicationException annotation. |
void |
setAroundInvokeMethodMetadata(MethodAnnotationMetadata aroundInvokeMethodMetadata)
Sets the@ AroundInvoke method of this class. |
void |
setClassType(ClassType cType)
Sets the type of this class. |
void |
setGlobalEasyBeansInterceptors(java.util.List<JClassInterceptor> globalEasyBeansInterceptors)
Sets the list of global interceptors that enhancers will use. |
void |
setInterfaces(java.lang.String[] interfaces)
Sets the interfaces of this class. |
void |
setJAnnotationEJB(JAnnotationEJB jAnnotationEJB)
Set JAnnotationEJB object. |
void |
setJAnnotationEJBs(java.util.List<JAnnotationEJB> jAnnotationEJBs)
Set JAnnotationEJBs object. |
void |
setJAnnotationResource(JAnnotationResource jAnnotationResource)
Set JAnnotationResource object. |
void |
setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
Set JAnnotationResources object. |
void |
setJMessageDriven(JMessageDriven messageDriven)
Sets the message driven bean object. |
void |
setLocalHome(java.lang.String localHome)
Sets the @ LocalHome class name. |
void |
setLocalInterfaces(JLocal jLocal)
Sets the local interfaces of this class. |
void |
setPostActivateMethodMetadata(MethodAnnotationMetadata postActivateMethodMetadata)
Sets the@ PostActivate method of this class. |
void |
setPostConstructMethodMetadata(MethodAnnotationMetadata postConstructMethodMetadata)
Sets the@ PostConstruct method of this class. |
void |
setPreDestroyMethodMetadata(MethodAnnotationMetadata preDestroyMethodMetadata)
Sets the@ PreDestroy method of this class. |
void |
setPrePassivateMethodMetadata(MethodAnnotationMetadata prePassivateMethodMetadata)
Sets the@ PrePassivate method of this class. |
void |
setRemoteHome(java.lang.String remoteHome)
Sets the @ RemoteHome class name. |
void |
setRemoteInterfaces(JRemote jRemote)
Sets the remote interfaces of this class. |
void |
setSuperName(java.lang.String superName)
Sets the super class name. |
void |
setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
Set Transaction Attribute Type. |
void |
setTransactionManagementType(TransactionManagementType transactionManagementType)
Sets transaction management type. |
void |
setUnQualifiedBeanName(java.lang.String beanName)
Sets the name of the bean (based on @ Stateless anotation for example). |
void |
setUserInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> userInterceptors)
Sets the list of user interceptors that enhancers will use. These interceptors are defined in bean class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static JLog logger
private java.util.Map<JMethod,MethodAnnotationMetadata> methodsAnnotationMetadata
private java.util.Map<JField,FieldAnnotationMetadata> fieldsAnnotationMetadata
private EjbJarAnnotationMetadata ejbJarAnnotationMetadata
private java.lang.String unQualifiedBeanName
private JLocal jLocal
private JRemote jRemote
private JMessageDriven jMessageDriven
private java.lang.String localHome
private java.lang.String remoteHome
private JInterceptors annotationInterceptors
private java.util.List<JClassInterceptor> globalEasyBeansInterceptors
private java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> userInterceptors
private TransactionManagementType transactionManagementType
private TransactionAttributeType transactionAttributeType
private ApplicationException applicationException
private java.lang.String superName
private java.lang.String[] interfaces
private ClassType classType
ClassType
private java.lang.String className
private MethodAnnotationMetadata aroundInvokeMethodMetadata
AroundInvoke
on this class (only one per class).
private JAnnotationEJB jAnnotationEJB
EJB
annotation.
private java.util.List<JAnnotationEJB> jAnnotationEJBs
EJBs
annotation.
private JAnnotationResource jAnnotationResource
Resource
annotation.
private java.util.List<JAnnotationResource> jAnnotationResources
Resources
annotation.
private MethodAnnotationMetadata postConstructMethodMetadata
PostConstruct
on this class (only one per class).
private MethodAnnotationMetadata preDestroyMethodMetadata
PreDestroy
on this class (only one per class).
private MethodAnnotationMetadata postActivateMethodMetadata
PostActivate
on this class (only one per class).
private MethodAnnotationMetadata prePassivateMethodMetadata
PrePassivate
on this class (only one per class).
Constructor Detail |
---|
public ClassAnnotationMetadata(java.lang.String className, EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
className
- name of the class associated to these metadatas.ejbJarAnnotationMetadata
- parent metadata object.Method Detail |
---|
public java.lang.String getClassName()
public void addMethodAnnotationMetadata(MethodAnnotationMetadata methodAnnotationMetadata)
methodAnnotationMetadata
- metadata of a method.public MethodAnnotationMetadata getMethodAnnotationMetadata(JMethod jMethod)
jMethod
- key of the map of methods annotations.
public java.util.Collection<MethodAnnotationMetadata> getMethodAnnotationMetadataCollection()
public void addFieldAnnotationMetadata(FieldAnnotationMetadata fieldAnnotationMetadata)
fieldAnnotationMetadata
- metadata of a field.public FieldAnnotationMetadata getFieldAnnotationMetadata(JField jField)
jField
- key of the map of fields annotations.
public java.util.Collection<FieldAnnotationMetadata> getFieldAnnotationMetadataCollection()
public void setLocalInterfaces(JLocal jLocal)
jLocal
- list of interfaces.public void setRemoteInterfaces(JRemote jRemote)
jRemote
- list of interfaces.public JLocal getLocalInterfaces()
public JRemote getRemoteInterfaces()
public java.lang.String getUnQualifiedBeanName()
public void setUnQualifiedBeanName(java.lang.String beanName)
Stateless
anotation for example).
beanName
- unqualified bean namepublic boolean isStateless()
public boolean isStateful()
public boolean isSession()
public boolean isMdb()
public void setClassType(ClassType cType)
cType
- a type from enum class ClassType.ClassType
public JMessageDriven getJMessageDriven()
public void setJMessageDriven(JMessageDriven messageDriven)
messageDriven
- attributes of message driven bean.private static void concatStringBuilder(java.lang.String name, java.lang.Object object, java.lang.StringBuilder sb)
name
- the name of the entry.object
- object to add.sb
- the string builder object on which add the given element.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRemoteHome()
RemoteHome
class name.public void setRemoteHome(java.lang.String remoteHome)
RemoteHome
class name.
remoteHome
- the class name.public java.lang.String getLocalHome()
LocalHome
class name.public void setLocalHome(java.lang.String localHome)
LocalHome
class name.
localHome
- the class name.public TransactionManagementType getTransactionManagementType()
public void setTransactionManagementType(TransactionManagementType transactionManagementType)
transactionManagementType
- value.
(BEAN, CONTAINER)TransactionManagementType
public TransactionAttributeType getTransactionAttributeType()
getTransactionAttributeType
in interface ITransactionAttribute
TransactionAttributeType
public void setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
setTransactionAttributeType
in interface ITransactionAttribute
transactionAttributeType
- the type of transaction.TransactionAttributeType
public JInterceptors getAnnotationInterceptors()
Interceptors
.public void setAnnotationsInterceptors(JInterceptors annotationInterceptors)
Interceptors
annotation.
setAnnotationsInterceptors
in interface IEJBInterceptors
annotationInterceptors
- list of classespublic ApplicationException getApplicationException()
ApplicationException
annotation.public void setApplicationException(ApplicationException applicationException)
ApplicationException
annotation.
applicationException
- object representationpublic boolean isBean()
public java.lang.String[] getInterfaces()
public void setInterfaces(java.lang.String[] interfaces)
interfaces
- name of interfaces.public java.lang.String getSuperName()
public void setSuperName(java.lang.String superName)
superName
- name of the super class.public EjbJarAnnotationMetadata getEjbJarAnnotationMetadata()
public java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> getUserEasyBeansInterceptors()
public void setUserInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> userInterceptors)
userInterceptors
- list of interceptors that enhancer will use.public java.util.List<JClassInterceptor> getGlobalEasyBeansInterceptors()
public void setGlobalEasyBeansInterceptors(java.util.List<JClassInterceptor> globalEasyBeansInterceptors)
globalEasyBeansInterceptors
- list of interceptors that enhancer will use.public MethodAnnotationMetadata getAroundInvokeMethodMetadata()
AroundInvoke
.public void setAroundInvokeMethodMetadata(MethodAnnotationMetadata aroundInvokeMethodMetadata)
AroundInvoke
method of this class.
aroundInvokeMethodMetadata
- the method.public MethodAnnotationMetadata getPostConstructMethodMetadata()
PostConstruct
.public void setPostConstructMethodMetadata(MethodAnnotationMetadata postConstructMethodMetadata)
PostConstruct
method of this class.
postConstructMethodMetadata
- the method.public MethodAnnotationMetadata getPreDestroyMethodMetadata()
PreDestroy
.public void setPreDestroyMethodMetadata(MethodAnnotationMetadata preDestroyMethodMetadata)
PreDestroy
method of this class.
preDestroyMethodMetadata
- the method.public MethodAnnotationMetadata getPostActivateMethodMetadata()
PostActivate
.public void setPostActivateMethodMetadata(MethodAnnotationMetadata postActivateMethodMetadata)
PostActivate
method of this class.
postActivateMethodMetadata
- the method.public MethodAnnotationMetadata getPrePassivateMethodMetadata()
PrePassivate
.public void setPrePassivateMethodMetadata(MethodAnnotationMetadata prePassivateMethodMetadata)
PrePassivate
method of this class.
prePassivateMethodMetadata
- the method.public boolean isInterceptor()
public JAnnotationEJB getJAnnotationEJB()
getJAnnotationEJB
in interface IAnnotationEJB
public void setJAnnotationEJB(JAnnotationEJB jAnnotationEJB)
setJAnnotationEJB
in interface IAnnotationEJB
jAnnotationEJB
- object representing javax.annotation.EJB annotation.public java.util.List<JAnnotationEJB> getJAnnotationEJBs()
EJBs
annotation.public void setJAnnotationEJBs(java.util.List<JAnnotationEJB> jAnnotationEJBs)
jAnnotationEJBs
- list representing javax.annotation.EJBs annotation.public JAnnotationResource getJAnnotationResource()
getJAnnotationResource
in interface IAnnotationResource
public void setJAnnotationResource(JAnnotationResource jAnnotationResource)
setJAnnotationResource
in interface IAnnotationResource
jAnnotationResource
- object representing javax.annotation.Resource annotation.public java.util.List<JAnnotationResource> getJAnnotationResources()
Resources
annotation.public void setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
jAnnotationResources
- list representing javax.annotation.Resources annotation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |