|
||||||||||
| 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.MethodAnnotationMetadata
public class MethodAnnotationMetadata
This class represents the annotation metadata of a method.
| Constructor Summary | |
|---|---|
MethodAnnotationMetadata(JMethod jMethod,
ClassAnnotationMetadata classAnnotationMetadata)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
JInterceptors |
getAnnotationInterceptors()
|
ClassAnnotationMetadata |
getClassAnnotationMetadata()
|
java.util.List<JClassInterceptor> |
getGlobalEasyBeansInterceptors()
|
java.util.List<JClassInterceptor> |
getInterceptors()
|
JMethod |
getJMethod()
|
Remove |
getJRemove()
|
java.lang.String |
getMethodName()
|
ClassAnnotationMetadata |
getOriginalClassAnnotationMetadata()
|
TransactionAttributeType |
getTransactionAttributeType()
|
java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
getUserEasyBeansInterceptors()
|
boolean |
isAroundInvoke()
|
boolean |
isBusinessMethod()
|
boolean |
isExcludedClassInterceptors()
|
boolean |
isInherited()
|
boolean |
isLifeCycleMethod()
|
boolean |
isPostActivate()
|
boolean |
isPostConstruct()
|
boolean |
isPreDestroy()
|
boolean |
isPrePassivate()
|
boolean |
isTimeout()
|
void |
setAnnotationsInterceptors(JInterceptors annotationInterceptors)
Sets the object representing the @ Interceptors annotation. |
void |
setAroundInvoke(boolean aroundInvoke)
Sets true if method has @ AroundInvoke. |
void |
setBusinessMethod(boolean flag)
This method is a business method. |
void |
setClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)
Replace the link to the classannotation metadata. |
void |
setExcludeClassInterceptors(boolean excludeClassInterceptors)
Flag this method as a method which exclude user interceptors. |
void |
setGlobalEasyBeansInterceptors(java.util.List<JClassInterceptor> globalEasyBeansInterceptors)
Sets the list of global interceptors that enhancers will use. |
void |
setInherited(boolean inherited,
ClassAnnotationMetadata originalClassAnnotationMetadata)
Sets the inheritance of this method. |
void |
setInterceptors(java.util.List<JClassInterceptor> interceptors)
Sets the list of interceptors(tx, security, etc) that enhancers will use. These interceptors are defined per methods. |
void |
setPostActivate(boolean postActivate)
Sets true if method has @ PostActivate. |
void |
setPostConstruct(boolean postConstruct)
Sets true if method has @ PostConstruct. |
void |
setPreDestroy(boolean preDestroy)
Sets true if method has @ PreDestroy. |
void |
setPrePassivate(boolean prePassivate)
Sets true if method has @ PrePassivate. |
void |
setRemove(Remove remove)
Sets @ Remove attribute. |
void |
setTimeout(boolean timeout)
Sets true if method has @ Timeout. |
void |
setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
Sets Transaction Attribute 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()
|
| 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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MethodAnnotationMetadata(JMethod jMethod,
ClassAnnotationMetadata classAnnotationMetadata)
jMethod - the method on which we will set/add metadataclassAnnotationMetadata - the parent metadata.| Method Detail |
|---|
public java.lang.String getMethodName()
public JMethod getJMethod()
public TransactionAttributeType getTransactionAttributeType()
getTransactionAttributeType in interface ITransactionAttributeTransactionAttributeTypepublic void setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
setTransactionAttributeType in interface ITransactionAttributetransactionAttributeType - the type of transaction.TransactionAttributeTypepublic boolean isBusinessMethod()
public void setBusinessMethod(boolean flag)
flag - true/false if method is a business method.public boolean isLifeCycleMethod()
public Remove getJRemove()
Remove attributespublic void setRemove(Remove remove)
Remove attribute.
remove - contains the attribute with retainIfException.public java.lang.String toString()
toString in class CommonAnnotationMetadatapublic boolean isPostActivate()
PostActivatepublic void setPostActivate(boolean postActivate)
PostActivate.
postActivate - true/false.public boolean isPostConstruct()
PostConstruct.public void setPostConstruct(boolean postConstruct)
PostConstruct.
postConstruct - true/false.public boolean isPreDestroy()
PreDestroy.public void setPreDestroy(boolean preDestroy)
PreDestroy.
preDestroy - true/false.public boolean isPrePassivate()
PrePassivate.public void setPrePassivate(boolean prePassivate)
PrePassivate.
prePassivate - true/false.public boolean isTimeout()
Timeout.public void setTimeout(boolean timeout)
Timeout.
timeout - true/false.public boolean isAroundInvoke()
AroundInvoke.public void setAroundInvoke(boolean aroundInvoke)
AroundInvoke.
aroundInvoke - true/falsepublic boolean isInherited()
public void setInherited(boolean inherited,
ClassAnnotationMetadata originalClassAnnotationMetadata)
inherited - true if method is from a super classoriginalClassAnnotationMetadata - the metadata of the original class (not inherited)public boolean isExcludedClassInterceptors()
public void setExcludeClassInterceptors(boolean excludeClassInterceptors)
excludeClassInterceptors - true if this method is a method which exclude user interceptors.public ClassAnnotationMetadata getClassAnnotationMetadata()
public ClassAnnotationMetadata getOriginalClassAnnotationMetadata()
public java.util.List<JClassInterceptor> getInterceptors()
public void setInterceptors(java.util.List<JClassInterceptor> interceptors)
interceptors - list of interceptors that enhancer will use.public JInterceptors getAnnotationInterceptors()
Interceptors.public void setAnnotationsInterceptors(JInterceptors annotationInterceptors)
Interceptors annotation.
setAnnotationsInterceptors in interface IEJBInterceptorsannotationInterceptors - list of classespublic 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 java.lang.Object clone()
clone in class java.lang.Objectpublic void setClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)
classAnnotationMetadata - new object for the link.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||