|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bm.ejb3metadata.annotations.metadata.CommonAnnotationMetadata
com.bm.ejb3metadata.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.
| 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. |
void |
addPostActivateMethodMetadata(MethodAnnotationMetadata postActivateMethodMetadata)
Adds a @ PostActivate method of this class. |
void |
addPostConstructMethodMetadata(MethodAnnotationMetadata postConstructMethodMetadata)
Adds a @ PostConstruct method of this class. |
void |
addPreDestroyMethodMetadata(MethodAnnotationMetadata preDestroyMethodMetadata)
Adds a @ PreDestroy method of this class. |
void |
addPrePassivateMethodMetadata(MethodAnnotationMetadata prePassivateMethodMetadata)
Adds a @ PrePassivate method of this class. |
JInterceptors |
getAnnotationInterceptors()
Object representing list of @ Interceptors. |
ApplicationException |
getApplicationException()
the @ ApplicationException annotation. |
java.util.List<MethodAnnotationMetadata> |
getAroundInvokeMethodMetadatas()
the list of methods metadata with annotation @ AroundInvoke. |
java.lang.String |
getClassName()
name of the bean (associated to this metadata). |
EjbJarAnnotationMetadata |
getEjbJarAnnotationMetadata()
parent metadata object. |
java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
getExternalUserEasyBeansInterceptors()
Map<interceptor type <--> List of methods/class corresponding to the interceptor> (interceptor classes) of user interceptors that enhancer will use. |
FieldAnnotationMetadata |
getFieldAnnotationMetadata(JField jField)
key of the map of fields annotations. |
java.util.Collection<FieldAnnotationMetadata> |
getFieldAnnotationMetadataCollection()
Get collections of fields annotation metadata. |
java.lang.String[] |
getInterfaces()
array of interfaces name. |
java.util.List<JAnnotationResource> |
getJAnnotationResources()
JAnnotationResources list representing @ Resources
annotation. |
java.util.List<JavaxPersistenceContext> |
getJavaxPersistencePersistenceContexts()
javaxPersistencePersistenceContexts list representing @ PersistenceContexts
annotation. |
java.util.List<JavaxPersistenceUnit> |
getJavaxPersistencePersistenceUnits()
javaxPersistencePersistenceUnits list representing @ PersistenceUnits
annotation. |
JCommonBean |
getJCommonBean()
the attributes for a Stateless/Stateful/MDB. |
java.util.List<JEjbEJB> |
getJEjbEJBs()
jEjbEJBs list representing @ EJBs
annotation. |
JMessageDriven |
getJMessageDriven()
Message driven attribute. |
JService |
getJService()
the jService. |
JStateful |
getJStateful()
the attributes for a Stateful. |
JStateless |
getJStateless()
the attributes for a Stateless. |
java.lang.String |
getLocalHome()
the @ LocalHome class name. |
JLocal |
getLocalInterfaces()
the local interfaces of this class. |
MethodAnnotationMetadata |
getMethodAnnotationMetadata(JMethod jMethod)
jMethod key of the map of methods annotations. |
java.util.Collection<MethodAnnotationMetadata> |
getMethodAnnotationMetadataCollection()
Get collections of methods annotation metadata. |
java.util.LinkedList<MethodAnnotationMetadata> |
getPostActivateMethodsMetadata()
the methods metadata with annotation @ PostActivate. |
java.util.LinkedList<MethodAnnotationMetadata> |
getPostConstructMethodsMetadata()
the methods metadata with annotation @ PostConstruct. |
java.util.LinkedList<MethodAnnotationMetadata> |
getPreDestroyMethodsMetadata()
the methods metadata with annotation @ PreDestroy. |
java.util.LinkedList<MethodAnnotationMetadata> |
getPrePassivateMethodsMetadata()
the method metadata with annotation @ PrePassivate. |
java.lang.String |
getRemoteHome()
the @ RemoteHome class name. |
JRemote |
getRemoteInterfaces()
the remote interfaces of this class. |
java.lang.String |
getSuperName()
the super class name. |
TransactionAttributeType |
getTransactionAttributeType()
transaction Attribute type. |
TransactionManagementType |
getTransactionManagementType()
transaction management type from. |
boolean |
isAroundInvokeMethodMetadata()
the method metadata with annotation @ AroundInvoke. |
boolean |
isBean()
true if the classs is a Bean. |
boolean |
isInterceptor()
Is that this class is an interceptor class ? |
boolean |
isMdb()
true if the class is an MDB class. |
boolean |
isService()
true if the class is an MDB class. |
boolean |
isSession()
true if the class is a session bean class. |
boolean |
isStateful()
true if the class is a stateful class. |
boolean |
isStateless()
true if the class is a stateless class. |
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 |
setExternalUserInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> externalUserInterceptors)
Sets the list of user interceptors that enhancers will use. These interceptors are defined outside the bean class (interceptor classes). |
void |
setInterfaces(java.lang.String[] interfaces)
Sets the interfaces of this class. |
void |
setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
Sets JAnnotationResources object. |
void |
setJavaxPersistencePersistenceContexts(java.util.List<JavaxPersistenceContext> javaxPersistencePersistenceContexts)
Sets JavaxPersistencePersistenceContexts object. |
void |
setJavaxPersistencePersistenceUnits(java.util.List<JavaxPersistenceUnit> javaxPersistencePersistenceUnits)
Sets setJavaxPersistencePersistenceUnits 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 |
setJService(JService service)
Sets the attributes for a Stateless. |
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 |
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. |
java.lang.String |
toString()
string representation. |
boolean |
wasModified()
true if the class has been modified. |
| Methods inherited from class com.bm.ejb3metadata.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 |
| 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 boolean isService()
public void setClassType(ClassType cType)
cType - a type from enum class ClassType.ClassTypepublic JMessageDriven getJMessageDriven()
public void setJMessageDriven(JMessageDriven messageDriven)
messageDriven - attributes of message driven bean.public java.lang.String toString()
toString in class CommonAnnotationMetadatapublic java.lang.String getRemoteHome()
RemoteHome class name.
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.
LocalHome class name.public void setLocalHome(java.lang.String localHome)
LocalHome class name.
the @LocalHome class name.
localHome - the class name.public TransactionManagementType getTransactionManagementType()
TransactionManagementType.public void setTransactionManagementType(TransactionManagementType transactionManagementType)
transactionManagementType - value. (BEAN, CONTAINER)TransactionManagementTypepublic TransactionAttributeType getTransactionAttributeType()
getTransactionAttributeType in interface ITransactionAttributeTransactionAttributeTypepublic void setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
setTransactionAttributeType in interface ITransactionAttributetransactionAttributeType - the type of transaction.TransactionAttributeTypepublic JInterceptors getAnnotationInterceptors()
Interceptors.
Interceptors.public void setAnnotationsInterceptors(JInterceptors annotationInterceptors)
Interceptors
annotation.
setAnnotationsInterceptors in interface IEJBInterceptorsannotationInterceptors - list of classespublic ApplicationException getApplicationException()
ApplicationException annotation.
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>> getExternalUserEasyBeansInterceptors()
public void setExternalUserInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> externalUserInterceptors)
externalUserInterceptors - list of interceptors that enhancer will use.public boolean isAroundInvokeMethodMetadata()
AroundInvoke.
AroundInvoke.public java.util.List<MethodAnnotationMetadata> getAroundInvokeMethodMetadatas()
AroundInvoke.
AroundInvoke.public void addAroundInvokeMethodMetadata(MethodAnnotationMetadata aroundInvokeMethodMetadata)
AroundInvoke method of this class.
aroundInvokeMethodMetadata - the method.public java.util.LinkedList<MethodAnnotationMetadata> getPostConstructMethodsMetadata()
PostConstruct.
PostConstruct.public void addPostConstructMethodMetadata(MethodAnnotationMetadata postConstructMethodMetadata)
PostConstruct method of this class.
postConstructMethodMetadata - the method.public java.util.LinkedList<MethodAnnotationMetadata> getPreDestroyMethodsMetadata()
PreDestroy.
PreDestroy.public void addPreDestroyMethodMetadata(MethodAnnotationMetadata preDestroyMethodMetadata)
PreDestroy method of this class.
preDestroyMethodMetadata - the method.public java.util.LinkedList<MethodAnnotationMetadata> getPostActivateMethodsMetadata()
PostActivate.
PostActivate.public void addPostActivateMethodMetadata(MethodAnnotationMetadata postActivateMethodMetadata)
PostActivate method of this class.
postActivateMethodMetadata - the method.public java.util.LinkedList<MethodAnnotationMetadata> getPrePassivateMethodsMetadata()
PrePassivate.
PrePassivate.public void addPrePassivateMethodMetadata(MethodAnnotationMetadata prePassivateMethodMetadata)
PrePassivate method of this class.
prePassivateMethodMetadata - the method.public boolean isInterceptor()
public java.util.List<JEjbEJB> getJEjbEJBs()
EJBs
annotation.
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.
Resources
annotation.public void setJAnnotationResources(java.util.List<JAnnotationResource> jAnnotationResources)
jAnnotationResources - list representing javax.annotation.Resources annotation.public java.util.List<JavaxPersistenceContext> getJavaxPersistencePersistenceContexts()
PersistenceContexts
annotation.
PersistenceContexts
annotation.public void setJavaxPersistencePersistenceContexts(java.util.List<JavaxPersistenceContext> javaxPersistencePersistenceContexts)
javaxPersistencePersistenceContexts - list representing @PersistenceContexts
annotation.public java.util.List<JavaxPersistenceUnit> getJavaxPersistencePersistenceUnits()
PersistenceUnits
annotation.
PersistenceUnits
annotation.public void setJavaxPersistencePersistenceUnits(java.util.List<JavaxPersistenceUnit> javaxPersistencePersistenceUnits)
javaxPersistencePersistenceUnits - list representing @PersistenceUnits
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 JService getJService()
public void setJService(JService service)
service - the jService to setpublic boolean wasModified()
public void setModified()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||