com.bm.ejb3metadata.annotations.metadata
Class EjbJarAnnotationMetadata

java.lang.Object
  extended by com.bm.ejb3metadata.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:
Daniel Wiese

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.
 java.lang.String getBeanImplementationForInterface(java.lang.Class interfaceName)
          Returns the name of the bean class by passing the rmote/ local interface name.
 java.lang.String getBeanImplementationForInterface(java.lang.String interfaceName)
          Returns the name of the bean class by passing the rmote/ local interface name.
 ClassAnnotationMetadata getClassAnnotationMetadata(java.lang.String className)
          Get class annotation metadata.
 java.util.Collection<ClassAnnotationMetadata> getClassAnnotationMetadataCollection()
          Get collections of bean annotation metadata.
 EJB3 getEjb3()
           
 java.util.Map<java.lang.String,java.lang.String> getInterface2implemantation()
          Returns the interface2implemantation.
 void mergeClassAnnotationMetadata(EjbJarAnnotationMetadata other)
          Merge the items from another
 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
 

Constructor Detail

EjbJarAnnotationMetadata

public EjbJarAnnotationMetadata()
Constructor.

Method Detail

mergeClassAnnotationMetadata

public void mergeClassAnnotationMetadata(EjbJarAnnotationMetadata other)
Merge the items from another

Parameters:
other -

addClassAnnotationMetadata

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

Parameters:
classAnnotationMetadata - annotation metadata of a class.

getBeanImplementationForInterface

public java.lang.String getBeanImplementationForInterface(java.lang.String interfaceName)
Returns the name of the bean class by passing the rmote/ local interface name.

Parameters:
interfaceName - - the name of the local / remote interface
Returns:
the name of the bean class by passing the rmote/ local interface name.

getBeanImplementationForInterface

public java.lang.String getBeanImplementationForInterface(java.lang.Class interfaceName)
Returns the name of the bean class by passing the rmote/ local interface name.

Parameters:
interfaceName - - the name of the local / remote interface
Returns:
the name of the bean class by passing the rmote/ local interface name.

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.

getInterface2implemantation

public java.util.Map<java.lang.String,java.lang.String> getInterface2implemantation()
Returns the interface2implemantation.

Returns:
Returns the interface2implemantation.


Copyright © 2008. All Rights Reserved.