org.objectweb.jonas_ejb.deployment.api
Class DeploymentDescEjb2
java.lang.Object
org.objectweb.jonas_lib.deployment.api.DescriptionGroupDesc
org.objectweb.jonas_ejb.deployment.api.DeploymentDesc
org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2
- All Implemented Interfaces:
- DescriptionGroup
public class DeploymentDescEjb2
- extends DeploymentDesc
Class to hold meta-information related to the deployment of an ejb-jar
This subclass is for specification EJB 2.x, i.e. CMP2 persistance and MDB.
It is also responsible for loading the Jorm Meta Information.
- Author:
- S.Chassande-Barrioz : Initial developer, Christophe Ney [cney@batisseurs.com], Philippe Durieux (new Jorm mapping)
Constructor Summary |
DeploymentDescEjb2(java.lang.ClassLoader classLoader,
EjbJar ejbJar,
JonasEjbJar jonasEjbJar,
org.objectweb.util.monolog.api.Logger l,
java.lang.String fileName)
Build the Meta-Information from the XML data binding trees
containing the EJB and JOnAS deployment descriptors. |
Method Summary |
java.util.Iterator |
getEjbRelationDescIterator()
Get iterator of meta-info for all defined relations |
org.objectweb.jorm.metainfo.api.Manager |
getJormManager()
get the JORM Manager
At first call, loads all the meta information for entity beans CMP2 |
protected BeanDesc |
newEntityBeanDesc(java.lang.ClassLoader classLoader,
Entity ent,
AssemblyDescriptor asd,
JonasEntity jEnt,
JLinkedList jMDRList)
In case of beans with old CMP1 persistance, we need to instanciate the old class,
as if we were in an old Deployment Descriptor. |
java.lang.String |
toString()
String representation of the object for test purpose |
Methods inherited from class org.objectweb.jonas_ejb.deployment.api.DeploymentDesc |
asn2BeanDesc, getBeanDesc, getBeanDesc, getBeanDescIterator, getBeanDescWithLocalInterface, getDisplayName, getEjbClientJar, getExcludeListDesc, getJonasMessageDestination, getJOnASXmlContent, getLogger, getMessageDestination, getMethodPermissionsDescList, getRolesForRunAsPrincipal, getXmlContent, setJOnASXmlContent, setLogger, setXmlContent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DeploymentDescEjb2
public DeploymentDescEjb2(java.lang.ClassLoader classLoader,
EjbJar ejbJar,
JonasEjbJar jonasEjbJar,
org.objectweb.util.monolog.api.Logger l,
java.lang.String fileName)
throws DeploymentDescException
- Build the Meta-Information from the XML data binding trees
containing the EJB and JOnAS deployment descriptors.
- Parameters:
classLoader
- The Class Loader to be usedejbJar
- The EjbJar information, from standard deployment descriptor.jonasEjbJar
- The JonasEjbJar information, from JOnAS specific deployment descriptor.l
- The logger to be used for tracingFileName
- deployment desc's jar or directory name
- Throws:
DeploymentDescException
- Error when building the Deployment Descriptor
newEntityBeanDesc
protected BeanDesc newEntityBeanDesc(java.lang.ClassLoader classLoader,
Entity ent,
AssemblyDescriptor asd,
JonasEntity jEnt,
JLinkedList jMDRList)
throws DeploymentDescException
- In case of beans with old CMP1 persistance, we need to instanciate the old class,
as if we were in an old Deployment Descriptor.
Default is CMP2.x for entity beans with a EJB2.0 DD.
- Specified by:
newEntityBeanDesc
in class DeploymentDesc
- Parameters:
classLoader
- The ClassLoader to be usedent
- Entity MetaInformation from XML filesasd
- AssemblyDescriptor MetaInformation from XML filesjEnt
- JonasEntity MetaInformation from XML filesjMDRList
- MessageDrivenRef list
- Returns:
- The Entity Bean Descriptor, for the good CMP version.
- Throws:
DeploymentDescException
- Cannot build Entity Descriptor
getJormManager
public org.objectweb.jorm.metainfo.api.Manager getJormManager()
throws DeploymentDescException
- get the JORM Manager
At first call, loads all the meta information for entity beans CMP2
- Returns:
- The Jorm Manager
- Throws:
DeploymentDescException
- Cannot build Jorm Meta Information
getEjbRelationDescIterator
public java.util.Iterator getEjbRelationDescIterator()
- Get iterator of meta-info for all defined relations
- Returns:
- an iterator of EjbRelationDesc
toString
public java.lang.String toString()
- String representation of the object for test purpose
- Specified by:
toString
in interface DescriptionGroup
- Overrides:
toString
in class DeploymentDesc
- Returns:
- String representation of this object