org.ow2.easybeans.deployment.metadata.ejbjar
Class EasyBeansEjbJarMethodMetadata

java.lang.Object
  extended by org.ow2.util.scan.api.metadata.CommonMetadata
      extended by org.ow2.util.scan.api.metadata.MethodMetadata<C,M,F>
          extended by org.ow2.util.ee.metadata.common.impl.CommonMethodMetadata<C,M,F>
              extended by org.ow2.util.ee.metadata.ejbjar.impl.EjbJarMethodMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
                  extended by org.ow2.easybeans.deployment.metadata.ejbjar.EasyBeansEjbJarMethodMetadata
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.ow2.util.ee.metadata.common.api.ICommonMethodMetadata<EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>, org.ow2.util.ee.metadata.common.api.interfaces.IAnnotationResource, org.ow2.util.ee.metadata.common.api.interfaces.IAnnotationSecurityPermitAll, org.ow2.util.ee.metadata.common.api.interfaces.IAnnotationSecurityRolesAllowed, org.ow2.util.ee.metadata.common.api.interfaces.IEjbEJB, org.ow2.util.ee.metadata.common.api.interfaces.IEJBInterceptors, org.ow2.util.ee.metadata.common.api.interfaces.IHandlerChain, org.ow2.util.ee.metadata.common.api.interfaces.IInterceptorExcludeDefaultInterceptors, org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceContext, org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceUnit, org.ow2.util.ee.metadata.common.api.interfaces.ISharedMetadata, org.ow2.util.ee.metadata.common.api.interfaces.ITransactionAttribute, org.ow2.util.ee.metadata.common.api.interfaces.IWebMethod, org.ow2.util.ee.metadata.common.api.interfaces.IWebServiceRef, org.ow2.util.ee.metadata.ejbjar.api.IEjbJarMethodMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>, org.ow2.util.ee.metadata.ejbjar.api.ILock, org.ow2.util.scan.api.metadata.IMethodMetadata<EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>

public class EasyBeansEjbJarMethodMetadata
extends org.ow2.util.ee.metadata.ejbjar.impl.EjbJarMethodMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
implements java.lang.Cloneable

This class represents the annotation metadata of a method.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
EasyBeansEjbJarMethodMetadata(org.ow2.util.scan.api.metadata.structures.JMethod jMethod, EasyBeansEjbJarClassMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 java.util.List<? extends org.ow2.util.ee.metadata.ejbjar.api.IJClassInterceptor> getInterceptors()
           
 java.lang.String getMethodName()
          Override because org.ow2.easybeans.enhancer.interceptors.InterceptorClassAdapter use it.
 EasyBeansEjbJarClassMetadata getOriginalClassMetadata()
           
 boolean isIgnored()
           
 boolean isInherited()
           
 void setIgnored(boolean ignored)
          Specify if the method will be ignored or not.
 void setInherited(boolean inherited, EasyBeansEjbJarClassMetadata originalClassMetadata)
          Sets the inheritance of this method.
 void setInterceptors(java.util.List<? extends org.ow2.util.ee.metadata.ejbjar.api.IJClassInterceptor> interceptors)
          Sets the list of interceptors(tx, security, etc) that enhancers will use.
These interceptors are defined per methods.
 
Methods inherited from class org.ow2.util.ee.metadata.ejbjar.impl.EjbJarMethodMetadata
getAnnotationInterceptors, getGlobalEasyBeansInterceptors, getJavaxJwsWebMethod, getJRemove, getLockType, getRolesAllowed, getTransactionAttributeLevel, getTransactionAttributeType, getUserEasyBeansInterceptors, hasDenyAll, hasPermitAll, isAroundInvoke, isBusinessMethod, isExcludedClassInterceptors, isExcludedDefaultInterceptors, isLifeCycleMethod, isPostActivate, isPrePassivate, isTimeout, setAnnotationsInterceptors, setAroundInvoke, setBusinessMethod, setDenyAll, setExcludeClassInterceptors, setExcludeDefaultInterceptors, setGlobalEasyBeansInterceptors, setJavaxJwsWebMethod, setLockType, setPermitAll, setPostActivate, setPrePassivate, setRemove, setRolesAllowed, setTimeout, setTransactionAttributeLevel, setTransactionAttributeType, setUserInterceptors, toString
 
Methods inherited from class org.ow2.util.ee.metadata.common.impl.CommonMethodMetadata
getJAnnotationResource, getJavaxPersistenceContext, getJavaxPersistenceUnit, getJaxwsWebServiceRef, getJEjbEJB, getJwsHandlerChain, isPersistenceContext, isPersistenceUnit, isPostConstruct, isPreDestroy, setJAnnotationResource, setJavaxPersistenceContext, setJavaxPersistenceUnit, setJaxwsWebServiceRef, setJEjbEJB, setJwsHandlerChain, setPostConstruct, setPreDestroy
 
Methods inherited from class org.ow2.util.scan.api.metadata.MethodMetadata
getClassMetadata, getJMethod, setClassMetadata, setJMethod
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.ICommonMethodMetadata
isPostConstruct, isPreDestroy, setPostConstruct, setPreDestroy
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IEjbEJB
getJEjbEJB, setJEjbEJB
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IAnnotationResource
getJAnnotationResource, setJAnnotationResource
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceContext
getJavaxPersistenceContext, isPersistenceContext, setJavaxPersistenceContext
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IPersistenceUnit
getJavaxPersistenceUnit, isPersistenceUnit, setJavaxPersistenceUnit
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IWebServiceRef
getJaxwsWebServiceRef, setJaxwsWebServiceRef
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.interfaces.IHandlerChain
getJwsHandlerChain, setJwsHandlerChain
 
Methods inherited from interface org.ow2.util.scan.api.metadata.IMethodMetadata
getClassMetadata, getJMethod, setClassMetadata, setJMethod
 

Constructor Detail

EasyBeansEjbJarMethodMetadata

public EasyBeansEjbJarMethodMetadata(org.ow2.util.scan.api.metadata.structures.JMethod jMethod,
                                     EasyBeansEjbJarClassMetadata classAnnotationMetadata)
Constructor.

Parameters:
jMethod - the method on which we will set/add metadata
classAnnotationMetadata - the parent metadata.
Method Detail

isInherited

public boolean isInherited()
Returns:
true if this method is inherited from a super class

setInherited

public void setInherited(boolean inherited,
                         EasyBeansEjbJarClassMetadata originalClassMetadata)
Sets the inheritance of this method.

Parameters:
inherited - true if method is from a super class
originalClassMetadata - the metadata of the original class (not inherited)

isIgnored

public boolean isIgnored()
Returns:
true if this method should be ignored from bytecode processing

setIgnored

public void setIgnored(boolean ignored)
Specify if the method will be ignored or not.

Parameters:
ignored - true/false

getOriginalClassMetadata

public EasyBeansEjbJarClassMetadata getOriginalClassMetadata()
Returns:
original parent metadata (class) if inherited.

getMethodName

public java.lang.String getMethodName()
Override because org.ow2.easybeans.enhancer.interceptors.InterceptorClassAdapter use it.

Specified by:
getMethodName in interface org.ow2.util.ee.metadata.ejbjar.api.IEjbJarMethodMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
Overrides:
getMethodName in class org.ow2.util.ee.metadata.ejbjar.impl.EjbJarMethodMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
Returns:
the method name

getInterceptors

public java.util.List<? extends org.ow2.util.ee.metadata.ejbjar.api.IJClassInterceptor> getInterceptors()
Returns:
list of interceptors that enhancer will use. (ie : security/transaction)

setInterceptors

public void setInterceptors(java.util.List<? extends org.ow2.util.ee.metadata.ejbjar.api.IJClassInterceptor> interceptors)
Sets the list of interceptors(tx, security, etc) that enhancers will use.
These interceptors are defined per methods.

Parameters:
interceptors - list of interceptors that enhancer will use.

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object
Returns:
a clone of this metadata.


Copyright © 2006-2010 OW2 Consortium. All Rights Reserved.