org.objectweb.easybeans.deployment.annotations.metadata
Class EjbJarAnnotationMetadata

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.metadata.EjbJarAnnotationMetadata

public class EjbJarAnnotationMetadata
extends java.lang.Object

This class represents the annotation metadata of all classes of an EjbJar file. From this class, we can get metadata of all beans.

Author:
Florent Benoit

Field Summary
private  java.util.Map<java.lang.String,ApplicationException> applicationExceptions
          List of application exceptions used on this ejb-jar.
private  java.util.Map<java.lang.String,ClassAnnotationMetadata> classesAnnotationMetadata
          List of class annotations metadata.
private  java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> defaultInterceptors
          List of default interceptors by type (business or lifecycle).
private  JInterceptors defaultInterceptorsClasses
          List of default interceptors classes.
private  EJB3 ejb3
          Link to the Deployment Descriptor object.
private static JLog logger
          Logger.
 
Constructor Summary
EjbJarAnnotationMetadata()
          Constructor.
 
Method Summary
 void addClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)
          Add annotation metadata for a given class.
 java.util.Map<java.lang.String,ApplicationException> getApplicationExceptions()
          Gets the list of application exceptions defined on this ejb jar metadata.
 ClassAnnotationMetadata getClassAnnotationMetadata(java.lang.String className)
          Get class annotation metadata.
 java.util.Collection<ClassAnnotationMetadata> getClassAnnotationMetadataCollection()
          Get collections of bean annotation metadata.
 ClassAnnotationMetadata getClassAnnotationMetadataForEjbName(java.lang.String ejbName)
          Gets the class metadata for the given ejb-name.
 java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> getDefaultInterceptors()
           
 JInterceptors getDefaultInterceptorsClasses()
           
 EJB3 getEjb3()
           
 void setDefaultInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> defaultInterceptors)
          Sets the list of default interceptors that enhancers will use.
These interceptors are defined by XML DD.
 void setDefaultInterceptorsClasses(JInterceptors defaultInterceptorsClasses)
          Sets the object representing the default interceptor classes.
 void setEjb3(EJB3 ejb3)
          Sets the ejb3 deployment descriptor object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static JLog logger
Logger.


classesAnnotationMetadata

private java.util.Map<java.lang.String,ClassAnnotationMetadata> classesAnnotationMetadata
List of class annotations metadata.


ejb3

private EJB3 ejb3
Link to the Deployment Descriptor object.


applicationExceptions

private java.util.Map<java.lang.String,ApplicationException> applicationExceptions
List of application exceptions used on this ejb-jar.


defaultInterceptors

private java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> defaultInterceptors
List of default interceptors by type (business or lifecycle).


defaultInterceptorsClasses

private JInterceptors defaultInterceptorsClasses
List of default interceptors classes.

Constructor Detail

EjbJarAnnotationMetadata

public EjbJarAnnotationMetadata()
Constructor.

Method Detail

addClassAnnotationMetadata

public void addClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)
Add annotation metadata for a given class.

Parameters:
classAnnotationMetadata - annotation metadata of a class.

getClassAnnotationMetadataForEjbName

public ClassAnnotationMetadata getClassAnnotationMetadataForEjbName(java.lang.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

getClassAnnotationMetadata

public ClassAnnotationMetadata getClassAnnotationMetadata(java.lang.String className)
Get class annotation metadata.

Parameters:
className - key of the map of annotations bean.
Returns:
Bean annotation metadata of a given name.

getClassAnnotationMetadataCollection

public java.util.Collection<ClassAnnotationMetadata> getClassAnnotationMetadataCollection()
Get collections of bean annotation metadata.

Returns:
collections of bean annotation metadata.

getEjb3

public EJB3 getEjb3()
Returns:
the ejb3 deployment descriptor object.

setEjb3

public void setEjb3(EJB3 ejb3)
Sets the ejb3 deployment descriptor object.

Parameters:
ejb3 - the ejb3 deployment descriptor object.

getApplicationExceptions

public java.util.Map<java.lang.String,ApplicationException> 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.

getDefaultInterceptors

public java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> getDefaultInterceptors()
Returns:
Map<interceptor type <--> List of methods/class corresponding to the interceptor> (interceptor classes) of default interceptors that enhancer will use.

setDefaultInterceptors

public void setDefaultInterceptors(java.util.Map<InterceptorType,java.util.List<JClassInterceptor>> defaultInterceptors)
Sets the list of default interceptors that enhancers will use.
These interceptors are defined by XML DD.

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

getDefaultInterceptorsClasses

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

setDefaultInterceptorsClasses

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

Parameters:
defaultInterceptorsClasses - list of classes