org.ow2.util.ee.metadata.ejbjar.api
Interface IEjbJarDeployableMetadata<E extends EJBDeployable<E>,D extends IEjbJarDeployableMetadata<E,D,C,M,F>,C extends IEjbJarClassMetadata<E,D,C,M,F>,M extends IEjbJarMethodMetadata<E,D,C,M,F>,F extends IEjbJarFieldMetadata<E,D,C,M,F>>

Type Parameters:
E - an implementation of EJBDeployable
D - an implementation of IEjbJarDeployableMetadata
C - an implementation of IEjbJarClassMetadata
M - an implementation of IEjbJarMethodMetadata
F - an implementation of IEjbJarFieldMetadata
All Superinterfaces:
IDeployableMetadata<E>, IWebservicesDeployableMetadata, Serializable

public interface IEjbJarDeployableMetadata<E extends EJBDeployable<E>,D extends IEjbJarDeployableMetadata<E,D,C,M,F>,C extends IEjbJarClassMetadata<E,D,C,M,F>,M extends IEjbJarMethodMetadata<E,D,C,M,F>,F extends IEjbJarFieldMetadata<E,D,C,M,F>>
extends IDeployableMetadata<E>, IWebservicesDeployableMetadata

IEjbJarDeployableMetadata.

Author:
Gael Lalire

Method Summary
 void addScannedClassMetadata(C classAnnotationMetadata)
          Add annotation metadata for a given class.
 Map<String,IApplicationException> getApplicationExceptions()
          Gets the list of application exceptions defined on this ejb jar metadata.
 C getBeanEjbJarClassMetadataForEjbName(String ejbName, String ejbClass)
          Gets the class metadata for the given ejb-name/ejbclass.
 List<String> getBeanNames()
           
 Collection<C> getClassesForBean(String beanName)
           
 IJInterceptors getDefaultInterceptorsClasses()
           
 IEJB3 getEjb3()
           
 Collection<C> getEjbJarClassMetadataCollection()
          Get collections of bean annotation metadata.
 C getEjbJarClassMetadataForEjbName(String ejbName)
          Gets the class metadata for the given ejb-name.
 C getScannedClassMetadata(String className)
          Get interceptor class metadata.
 void setDefaultInterceptorsClasses(IJInterceptors defaultInterceptorsClasses)
          Sets the object representing the default interceptor classes.
 void setEjb3(IEJB3 ejb3)
          Sets the ejb3 deployment descriptor object.
 
Methods inherited from interface org.ow2.util.ee.deploy.api.deployable.metadata.IDeployableMetadata
getDeployable
 
Methods inherited from interface org.ow2.util.ee.metadata.ws.api.IWebservicesDeployableMetadata
getWebservices12, setWebservices12
 

Method Detail

getBeanEjbJarClassMetadataForEjbName

C getBeanEjbJarClassMetadataForEjbName(String ejbName,
                                       String ejbClass)
Gets the class metadata for the given ejb-name/ejbclass.

Parameters:
ejbName - the name of the EJB.
ejbClass - the class of the EJB.
Returns:
class metadata or null if not found

addScannedClassMetadata

void addScannedClassMetadata(C classAnnotationMetadata)
Add annotation metadata for a given class.

Parameters:
classAnnotationMetadata - annotation metadata of a class.

getEjbJarClassMetadataForEjbName

C getEjbJarClassMetadataForEjbName(String ejbName)
Gets the class metadata for the given ejb-name.

Parameters:
ejbName - the name of the EJB.
Returns:
class metadata or null if not found

getScannedClassMetadata

C getScannedClassMetadata(String className)
Get interceptor class metadata.

Parameters:
className - key of the map of annotations bean.
Returns:
interceptor class metadata of a given name or null if class not found.

getEjbJarClassMetadataCollection

Collection<C> getEjbJarClassMetadataCollection()
Get collections of bean annotation metadata.

Returns:
collections of bean annotation metadata.

getApplicationExceptions

Map<String,IApplicationException> getApplicationExceptions()
Gets the list of application exceptions defined on this ejb jar metadata.

Returns:
the list of application exceptions defined on this ejb jar metadata.

getDefaultInterceptorsClasses

IJInterceptors getDefaultInterceptorsClasses()
Returns:
object representing list of default interceptor classes.

setDefaultInterceptorsClasses

void setDefaultInterceptorsClasses(IJInterceptors defaultInterceptorsClasses)
Sets the object representing the default interceptor classes.

Parameters:
defaultInterceptorsClasses - list of classes

getEjb3

IEJB3 getEjb3()
Returns:
the ejb3 deployment descriptor object.

setEjb3

void setEjb3(IEJB3 ejb3)
Sets the ejb3 deployment descriptor object.

Parameters:
ejb3 - the ejb3 deployment descriptor object.

getBeanNames

List<String> getBeanNames()
Returns:
a list of all beans that are defined

getClassesForBean

Collection<C> getClassesForBean(String beanName)
Parameters:
beanName - the bean that will be used in order to get the classes.
Returns:
a list of all classes that are for a given bean


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.