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  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.
 EJB3 getEjb3()
           
 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.

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.

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.