|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.metadata.CommonAnnotationMetadata
org.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 java.util.List<MethodAnnotationMetadata> |
aroundInvokeMethodMetadatas
List of @ AroundInvoke methods on this class (should be only one per class, validating occurs after). |
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 java.util.List<JAnnotationResource> |
jAnnotationResources
Object representing @ Resources annotation. |
private JCommonBean |
jCommonBean
CommonBean description. |
private java.util.List<JEjbEJB> |
jEjbEJBs
Object representing @ EJBs annotation. |
private JLocal |
jLocal
List of local interfaces. |
private JMessageDriven |
jMessageDriven
Message Driven attribute. |
private JRemote |
jRemote
List of remote interfaces. |
private JStateful |
jStateful
Stateful attribute. |
private JStateless |
jStateless
Stateless attribute. |
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 boolean |
modified
Is that the class represented by this metadata has already been modified ? |
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.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
userInterceptors
User interceptors. |
Constructor Summary | |
---|---|
ClassAnnotationMetadata(java.lang.String className,
EjbJarAnnotationMetadata ejbJarAnnotationMetadata)
Constructor. |
Method Summary | |
---|---|
void |
addAroundInvokeMethodMetadata(MethodAnnotationMetadata aroundInvokeMethodMetadata)
Add a @ AroundInvoke method of this class. |
void |
addFieldAnnotationMetadata(FieldAnnotationMetadata fieldAnnotationMetadata)
Add field annotation metadata for a given Bean. |
void |
addMethodAnnotationMetadata(MethodAnnotationMetadata methodAnnotationMetadata)
Add method annotation metadata for a given Bean. |
JInterceptors |
getAnnotationInterceptors()
|
ApplicationException |
getApplicationException()
|
MethodAnnotationMetadata |
getAroundInvokeMethodMetadata()
|
java.util.List<MethodAnnotationMetadata> |
getAroundInvokeMethodMetadatas()
|
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()
|
java.util.List<JAnnotationResource> |
getJAnnotationResources()
|
JCommonBean |
getJCommonBean()
|
java.util.List<JEjbEJB> |
getJEjbEJBs()
|
JMessageDriven |
getJMessageDriven()
|
JStateful |
getJStateful()
|
JStateless |
getJStateless()
|
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.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 |
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 |
setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
Sets JAnnotationResources object. |
void |
setJCommonBean(JCommonBean commonBean)
Sets the attributes for a Stateless/Stateful/MDB. |
void |
setJEjbEJBs(java.util.List<JEjbEJB> jEjbEJBs)
Set JEjbEJBs object. |
void |
setJMessageDriven(JMessageDriven messageDriven)
Sets the message driven bean object. |
void |
setJStateful(JStateful jStateful)
Sets the attributes for a Stateful. |
void |
setJStateless(JStateless jStateless)
Sets the attributes for a Stateless. |
void |
setLocalHome(java.lang.String localHome)
Sets the @ LocalHome class name. |
void |
setLocalInterfaces(JLocal jLocal)
Sets the local interfaces of this class. |
void |
setModified()
Defines that this class has been modified. |
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 |
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()
|
boolean |
wasModified()
|
Methods inherited from class org.objectweb.easybeans.deployment.annotations.metadata.CommonAnnotationMetadata |
---|
concatStringBuilder, concatStringBuilder, getJAnnotationResource, getJavaxPersistenceContext, getJavaxPersistenceUnit, getJEjbEJB, isPersistenceContext, isPersistenceUnit, setJAnnotationResource, setJavaxPersistenceContext, setJavaxPersistenceUnit, setJEjbEJB |
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 JLocal jLocal
private JRemote jRemote
private JCommonBean jCommonBean
private JMessageDriven jMessageDriven
private JStateless jStateless
private JStateful jStateful
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 java.util.List<MethodAnnotationMetadata> aroundInvokeMethodMetadatas
AroundInvoke
methods on this class (should be only one per class, validating occurs after).
private java.util.List<JEjbEJB> jEjbEJBs
EJBs
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).
private boolean modified
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 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.public java.lang.String toString()
toString
in class CommonAnnotationMetadata
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 java.util.List<MethodAnnotationMetadata> getAroundInvokeMethodMetadatas()
AroundInvoke
.public void addAroundInvokeMethodMetadata(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 java.util.List<JEjbEJB> getJEjbEJBs()
EJBs
annotation.public void setJEjbEJBs(java.util.List<JEjbEJB> jEjbEJBs)
jEjbEJBs
- list representing javax.ejb.EJBs annotation.public java.util.List<JAnnotationResource> getJAnnotationResources()
Resources
annotation.public void setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
jAnnotationResources
- list representing javax.annotation.Resources annotation.public JCommonBean getJCommonBean()
public void setJCommonBean(JCommonBean commonBean)
commonBean
- the attributespublic JStateful getJStateful()
public void setJStateful(JStateful jStateful)
jStateful
- the attributespublic JStateless getJStateless()
public void setJStateless(JStateless jStateless)
jStateless
- the attributespublic boolean wasModified()
public void setModified()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |