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

java.lang.Object
  extended by org.ow2.util.scan.api.metadata.CommonMetadata
      extended by org.ow2.util.scan.api.metadata.ClassMetadata<C,M,F>
          extended by org.ow2.util.ee.metadata.common.impl.CommonClassMetadata<C,M,F>
              extended by org.ow2.util.ee.metadata.ws.impl.WebservicesCommonClassMetadata<C,M,F>
                  extended by org.ow2.util.ee.metadata.ejbjar.impl.EjbJarClassMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
                      extended by org.ow2.easybeans.deployment.metadata.ejbjar.EasyBeansEjbJarClassMetadata
All Implemented Interfaces:
java.io.Serializable, org.ow2.util.ee.metadata.common.api.ICommonClassMetadata<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.IEnvEntryAccess, 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.IWebServiceRef, org.ow2.util.ee.metadata.ejbjar.api.IEjbJarClassMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>, org.ow2.util.ee.metadata.ejbjar.api.ILock, org.ow2.util.ee.metadata.ws.api.interfaces.IWebService, org.ow2.util.ee.metadata.ws.api.IWebservicesCommonClassMetadata<EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>, org.ow2.util.pool.api.IPoolMetadata, org.ow2.util.scan.api.metadata.IClassMetadata<EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>

public class EasyBeansEjbJarClassMetadata
extends org.ow2.util.ee.metadata.ejbjar.impl.EjbJarClassMetadata<org.ow2.util.ee.deploy.api.deployable.EJB3Deployable,EjbJarArchiveMetadata,EasyBeansEjbJarClassMetadata,EasyBeansEjbJarMethodMetadata,EasyBeansEjbJarFieldMetadata>
implements org.ow2.util.pool.api.IPoolMetadata

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.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
EasyBeansEjbJarClassMetadata()
          No-Arg Constructor.
 
Method Summary
 void addAroundInvokeMethodMetadata(EasyBeansEjbJarMethodMetadata aroundInvokeMethodMetadata)
          Add a @AroundInvoke method of this class.
 void addPostActivateMethodMetadata(EasyBeansEjbJarMethodMetadata postActivateMethodMetadata)
          Adds a @PostActivate method of this class.
 void addPostConstructMethodMetadata(EasyBeansEjbJarMethodMetadata postConstructMethodMetadata)
          Adds a @PostConstruct method of this class.
 void addPreDestroyMethodMetadata(EasyBeansEjbJarMethodMetadata preDestroyMethodMetadata)
          Adds a @PreDestroy method of this class.
 void addPrePassivateMethodMetadata(EasyBeansEjbJarMethodMetadata prePassivateMethodMetadata)
          Adds a @PrePassivate method of this class.
 java.util.List<EasyBeansEjbJarMethodMetadata> getAroundInvokeMethodMetadatas()
           
 java.lang.Object getCluster()
          Gets the cluster configuration.
 java.util.List<java.lang.String> getInheritedInterfaces()
           
 org.ow2.util.pool.api.IPoolConfiguration getPoolConfiguration()
           
 java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPostActivateMethodsMetadata()
           
 java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPostConstructMethodsMetadata()
           
 java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPreDestroyMethodsMetadata()
           
 java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPrePassivateMethodsMetadata()
           
 java.lang.String getWebServiceAuthMethod()
           
 java.lang.String getWebServiceContextRoot()
           
 java.lang.String getWebServiceEndpointAddress()
           
 java.util.List<java.lang.String> getWebServiceHttpMethods()
           
 java.lang.String getWebServiceRealmName()
           
 java.lang.String getWebServiceTransportGuarantee()
           
 boolean isAroundInvokeMethodMetadata()
           
 boolean isInterceptor()
          Is that this class is an interceptor class ?
 void setCluster(java.lang.Object cluster)
          Sets the cluster configuration.
 void setInheritedInterfaces(java.util.List<java.lang.String> inheritedInterfaces)
          Sets the interfaces used in the super classes.
 void setPoolConfiguration(org.ow2.util.pool.api.IPoolConfiguration poolConfiguration)
          Sets the pool configuration for this metadata.
 void setWebServiceAuthMethod(java.lang.String webServiceAuthMethod)
           
 void setWebServiceContextRoot(java.lang.String webServiceContextRoot)
           
 void setWebServiceEndpointAddress(java.lang.String webServiceEndpointAddress)
          Set the web service endpoint address.
 void setWebServiceHttpMethods(java.util.List<java.lang.String> webServiceHttpMethods)
           
 void setWebServiceRealmName(java.lang.String webServiceRealmName)
           
 void setWebServiceTransportGuarantee(java.lang.String webServiceTransportGuarantee)
           
 
Methods inherited from class org.ow2.util.ee.metadata.ejbjar.impl.EjbJarClassMetadata
getAnnotationInterceptors, getApplicationException, getClassName, getConcurrencyManagementType, getDeclareRoles, getDependsOn, getEjbJarDeployableMetadata, getEnvEntryCollection, getExternalUserEasyBeansInterceptors, getGlobalEasyBeansInterceptors, getInterfaces, getInternalUserEasyBeansInterceptors, getJCommonBean, getJMessageDriven, getJSingleton, getJStateful, getJStateless, getLinkedBean, getLinkedClassMetadata, getLocalHome, getLocalInterfaces, getLockType, getRemoteHome, getRemoteInterface, getRemoteInterfaces, getRolesAllowed, getSecurityRoleRefList, getSuperName, getTransactionAttributeType, getTransactionManagementType, hasPermitAll, isBean, isExcludedDefaultInterceptors, isMdb, isOrderedInterceptors, isSession, isSingleton, isStartup, isStateful, isStateless, setAnnotationsInterceptors, setApplicationException, setClassType, setConcurrencyManagementType, setDeclareRoles, setDependsOn, setEjbJarArchiveMetadata, setEnvEntryCollection, setExcludeDefaultInterceptors, setExternalUserInterceptors, setGlobalEasyBeansInterceptors, setInterfaces, setInternalUserInterceptors, setJCommonBean, setJMessageDriven, setJSingleton, setJStateful, setJStateless, setLinkedBean, setLocalHome, setLocalInterfaces, setLockType, setModified, setOrderedInterceptors, setPermitAll, setRemoteHome, setRemoteInterface, setRemoteInterfaces, setRolesAllowed, setSecurityRoleRefList, setStartup, setTransactionAttributeType, setTransactionManagementType, toString, wasModified
 
Methods inherited from class org.ow2.util.ee.metadata.ws.impl.WebservicesCommonClassMetadata
getWebServiceMarker, setWebServiceMarker
 
Methods inherited from class org.ow2.util.ee.metadata.common.impl.CommonClassMetadata
getJAnnotationResource, getJAnnotationResources, getJavaxPersistenceContext, getJavaxPersistencePersistenceContexts, getJavaxPersistencePersistenceUnits, getJavaxPersistenceUnit, getJaxwsWebServiceRef, getJaxwsWebServiceRefs, getJEjbEJB, getJEjbEJBs, getJwsHandlerChain, getRunAs, isPersistenceContext, isPersistenceUnit, setJAnnotationResource, setJAnnotationResources, setJavaxPersistenceContext, setJavaxPersistencePersistenceContexts, setJavaxPersistencePersistenceUnits, setJavaxPersistenceUnit, setJaxwsWebServiceRef, setJaxwsWebServiceRefs, setJEjbEJB, setJEjbEJBs, setJwsHandlerChain, setRunAs
 
Methods inherited from class org.ow2.util.scan.api.metadata.ClassMetadata
addStandardFieldMetadata, addStandardMethodMetadata, getJClass, getMethodMetadata, getMethodMetadataCollection, getStandardFieldMetadata, getStandardFieldMetadataCollection, getStandardMethodMetadata, getStandardMethodMetadataCollection, searchStandardFieldMetadata, searchStandardMethodMetadata, setJClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.util.ee.metadata.common.api.ICommonClassMetadata
getJAnnotationResources, getJavaxPersistencePersistenceContexts, getJavaxPersistencePersistenceUnits, getJaxwsWebServiceRefs, getJEjbEJBs, getRunAs, setJAnnotationResources, setJavaxPersistencePersistenceContexts, setJavaxPersistencePersistenceUnits, setJaxwsWebServiceRefs, setJEjbEJBs, setRunAs
 
Methods inherited from interface org.ow2.util.scan.api.metadata.IClassMetadata
addStandardFieldMetadata, addStandardMethodMetadata, getJClass, getStandardFieldMetadata, getStandardFieldMetadataCollection, getStandardMethodMetadata, getStandardMethodMetadataCollection, searchStandardFieldMetadata, searchStandardMethodMetadata, setJClass
 
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.ee.metadata.ws.api.interfaces.IWebService
getWebServiceMarker, setWebServiceMarker
 

Constructor Detail

EasyBeansEjbJarClassMetadata

public EasyBeansEjbJarClassMetadata()
No-Arg Constructor.

Method Detail

isAroundInvokeMethodMetadata

public boolean isAroundInvokeMethodMetadata()
Returns:
the method metadata with annotation @AroundInvoke.

getAroundInvokeMethodMetadatas

public java.util.List<EasyBeansEjbJarMethodMetadata> getAroundInvokeMethodMetadatas()
Returns:
the list of methods metadata with annotation @AroundInvoke.

addAroundInvokeMethodMetadata

public void addAroundInvokeMethodMetadata(EasyBeansEjbJarMethodMetadata aroundInvokeMethodMetadata)
Add a @AroundInvoke method of this class.

Parameters:
aroundInvokeMethodMetadata - the method.

getPostConstructMethodsMetadata

public java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPostConstructMethodsMetadata()
Returns:
the methods metadata with annotation @PostConstruct.

addPostConstructMethodMetadata

public void addPostConstructMethodMetadata(EasyBeansEjbJarMethodMetadata postConstructMethodMetadata)
Adds a @PostConstruct method of this class.

Parameters:
postConstructMethodMetadata - the method.

getPreDestroyMethodsMetadata

public java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPreDestroyMethodsMetadata()
Returns:
the methods metadata with annotation @PreDestroy.

addPreDestroyMethodMetadata

public void addPreDestroyMethodMetadata(EasyBeansEjbJarMethodMetadata preDestroyMethodMetadata)
Adds a @PreDestroy method of this class.

Parameters:
preDestroyMethodMetadata - the method.

getPostActivateMethodsMetadata

public java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPostActivateMethodsMetadata()
Returns:
the methods metadata with annotation @PostActivate.

addPostActivateMethodMetadata

public void addPostActivateMethodMetadata(EasyBeansEjbJarMethodMetadata postActivateMethodMetadata)
Adds a @PostActivate method of this class.

Parameters:
postActivateMethodMetadata - the method.

getPrePassivateMethodsMetadata

public java.util.LinkedList<EasyBeansEjbJarMethodMetadata> getPrePassivateMethodsMetadata()
Returns:
the method metadata with annotation @PrePassivate.

addPrePassivateMethodMetadata

public void addPrePassivateMethodMetadata(EasyBeansEjbJarMethodMetadata prePassivateMethodMetadata)
Adds a @PrePassivate method of this class.

Parameters:
prePassivateMethodMetadata - the method.

isInterceptor

public boolean isInterceptor()
Is that this class is an interceptor class ?

Returns:
true if it the case, else false.

getPoolConfiguration

public org.ow2.util.pool.api.IPoolConfiguration getPoolConfiguration()
Specified by:
getPoolConfiguration in interface org.ow2.util.pool.api.IPoolMetadata
Returns:
the pool configuration for this metadata.

setPoolConfiguration

public void setPoolConfiguration(org.ow2.util.pool.api.IPoolConfiguration poolConfiguration)
Sets the pool configuration for this metadata.

Specified by:
setPoolConfiguration in interface org.ow2.util.pool.api.IPoolMetadata
Parameters:
poolConfiguration - the given configuration.

getInheritedInterfaces

public java.util.List<java.lang.String> getInheritedInterfaces()
Returns:
the iherited interfaces of the super classes.

setInheritedInterfaces

public void setInheritedInterfaces(java.util.List<java.lang.String> inheritedInterfaces)
Sets the interfaces used in the super classes.

Parameters:
inheritedInterfaces - the given interfaces

getCluster

public java.lang.Object getCluster()
Gets the cluster configuration.

Returns:
the cluster

setCluster

public void setCluster(java.lang.Object cluster)
Sets the cluster configuration.

Parameters:
cluster - the clusterConfiguration to set

getWebServiceEndpointAddress

public java.lang.String getWebServiceEndpointAddress()
Returns:
the endpoint address associated with this bean configuration (may be null).

setWebServiceEndpointAddress

public void setWebServiceEndpointAddress(java.lang.String webServiceEndpointAddress)
Set the web service endpoint address.

Parameters:
webServiceEndpointAddress - URI address

getWebServiceContextRoot

public java.lang.String getWebServiceContextRoot()

setWebServiceContextRoot

public void setWebServiceContextRoot(java.lang.String webServiceContextRoot)

getWebServiceRealmName

public java.lang.String getWebServiceRealmName()

setWebServiceRealmName

public void setWebServiceRealmName(java.lang.String webServiceRealmName)

getWebServiceTransportGuarantee

public java.lang.String getWebServiceTransportGuarantee()

setWebServiceTransportGuarantee

public void setWebServiceTransportGuarantee(java.lang.String webServiceTransportGuarantee)

getWebServiceAuthMethod

public java.lang.String getWebServiceAuthMethod()

setWebServiceAuthMethod

public void setWebServiceAuthMethod(java.lang.String webServiceAuthMethod)

getWebServiceHttpMethods

public java.util.List<java.lang.String> getWebServiceHttpMethods()

setWebServiceHttpMethods

public void setWebServiceHttpMethods(java.util.List<java.lang.String> webServiceHttpMethods)


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