|
|||||||||
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.MethodAnnotationMetadata
public class MethodAnnotationMetadata
This class represents the annotation metadata of a method.
Field Summary | |
---|---|
private JInterceptors |
annotationInterceptors
List of annotation interceptors. |
private boolean |
aroundInvoke
@ AroundInvoke method used by interceptors ? |
private boolean |
businessMethod
This method is a business method ? |
private ClassAnnotationMetadata |
classAnnotationMetadata
Parent metadata. |
private boolean |
excludeClassInterceptors
@ ExcludeClassInterceptors method ? |
private java.util.List<JClassInterceptor> |
globalEasyBeansInterceptors
EasyBeans global interceptors. These interceptors correspond to a list of interceptors that need to be present first on this current method. |
private boolean |
inherited
This method is a method from a super class ? This flag is used by enhancers |
private java.util.List<JClassInterceptor> |
interceptors
EasyBeans method interceptors. |
private JMethod |
jMethod
Method on which we got metadata. |
private ClassAnnotationMetadata |
originalClassAnnotationMetadata
Original parent metadata (if method is inherited). |
private boolean |
postActivate
PostActivate method ? |
private boolean |
postConstruct
PostConstruct method ? |
private boolean |
preDestroy
PreDestroy method ? |
private boolean |
prePassivate
PrePassivate method ? |
private Remove |
remove
@ Remove annotation. |
private boolean |
timeout
@ Timeout method ? |
private TransactionAttributeType |
transactionAttributeType
Type of transaction. |
private java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> |
userInterceptors
User interceptors. |
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 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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private JMethod jMethod
private ClassAnnotationMetadata classAnnotationMetadata
private ClassAnnotationMetadata originalClassAnnotationMetadata
private TransactionAttributeType transactionAttributeType
private Remove remove
Remove
annotation.
private boolean businessMethod
private boolean postConstruct
private boolean preDestroy
private boolean postActivate
private boolean prePassivate
private boolean aroundInvoke
AroundInvoke
method used by interceptors ?
private boolean inherited
private boolean excludeClassInterceptors
ExcludeClassInterceptors
method ?
private boolean timeout
Timeout
method ?
private java.util.List<JClassInterceptor> globalEasyBeansInterceptors
private java.util.List<JClassInterceptor> interceptors
private JInterceptors annotationInterceptors
private java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> userInterceptors
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 ITransactionAttribute
TransactionAttributeType
public void setTransactionAttributeType(TransactionAttributeType transactionAttributeType)
setTransactionAttributeType
in interface ITransactionAttribute
transactionAttributeType
- the type of transaction.TransactionAttributeType
public 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 CommonAnnotationMetadata
public boolean isPostActivate()
PostActivate
public 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 IEJBInterceptors
annotationInterceptors
- 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.Object
public 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 |