|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 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 JAnnotationEJB |
jAnnotationEJB
Object representing @ EJB annotation. |
private JAnnotationResource |
jAnnotationResource
Object representing @ Resource annotation. |
private JMethod |
jMethod
Method on which we got metadata. |
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 | |
---|---|
private static void |
concatStringBuilder(java.lang.String name,
java.lang.Object object,
java.lang.StringBuilder sb)
Adds an entry to the given StringBuilder. |
private static void |
concatStringBuilder(java.lang.String name,
java.lang.Object object,
java.lang.StringBuilder sb,
java.lang.String indent)
Adds an entry to the given StringBuilder. |
JInterceptors |
getAnnotationInterceptors()
|
ClassAnnotationMetadata |
getClassAnnotationMetadata()
|
java.util.List<JClassInterceptor> |
getInterceptors()
|
JAnnotationEJB |
getJAnnotationEJB()
|
JAnnotationResource |
getJAnnotationResource()
|
JMethod |
getJMethod()
|
Remove |
getJRemove()
|
java.lang.String |
getMethodName()
|
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 |
setExcludeClassInterceptors(boolean excludeClassInterceptors)
Flag this method as a method which exclude user interceptors. |
void |
setInherited(boolean inherited)
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 |
setJAnnotationEJB(JAnnotationEJB jAnnotationEJB)
Set JAnnotationEJB object. |
void |
setJAnnotationResource(JAnnotationResource jAnnotationResource)
Set JAnnotationResource object. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private JMethod jMethod
private ClassAnnotationMetadata classAnnotationMetadata
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 JAnnotationEJB jAnnotationEJB
EJB
annotation.
private JAnnotationResource jAnnotationResource
Resource
annotation.
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.private static void concatStringBuilder(java.lang.String name, java.lang.Object object, java.lang.StringBuilder sb, java.lang.String indent)
name
- the name of the entry.object
- object to add.sb
- the string builder object on which add the given element.indent
- the indent to add at each line.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 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)
inherited
- true if method is from a super classpublic boolean isExcludedClassInterceptors()
public void setExcludeClassInterceptors(boolean excludeClassInterceptors)
excludeClassInterceptors
- true if this method is a method which exclude user interceptors.public ClassAnnotationMetadata getClassAnnotationMetadata()
public JAnnotationEJB getJAnnotationEJB()
getJAnnotationEJB
in interface IAnnotationEJB
public void setJAnnotationEJB(JAnnotationEJB jAnnotationEJB)
setJAnnotationEJB
in interface IAnnotationEJB
jAnnotationEJB
- object representing javax.annotation.EJB 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<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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |