org.ow2.jonas.deployment.ejb
Class DeploymentDescEjb2
java.lang.Object
org.ow2.jonas.deployment.common.DescriptionGroupDesc
org.ow2.jonas.deployment.ejb.DeploymentDesc
org.ow2.jonas.deployment.ejb.DeploymentDescEjb2
- All Implemented Interfaces:
- IDescriptionGroupDesc
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(ClassLoader classLoader,
EjbJar ejbJar,
JonasEjbJar jonasEjbJar,
org.objectweb.util.monolog.api.Logger l,
String fileName)
Build the Meta-Information from the XML data binding trees
containing the EJB and JOnAS deployment descriptors. |
Methods inherited from class org.ow2.jonas.deployment.ejb.DeploymentDesc |
asn2BeanDesc, getBeanDesc, getBeanDesc, getBeanDescIterator, getBeanDescWithLocalInterface, getDisplayName, getEjbClientJar, getExcludeListDesc, getJonasMessageDestination, getJOnASXmlContent, getLogger, getMessageDestination, getMethodPermissionsDescList, getMonitoringEnabled, getRolesForRunAsPrincipal, getWarningThreshold, getXmlContent, setJOnASXmlContent, setLogger, setXmlContent |
DeploymentDescEjb2
public DeploymentDescEjb2(ClassLoader classLoader,
EjbJar ejbJar,
JonasEjbJar jonasEjbJar,
org.objectweb.util.monolog.api.Logger l,
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(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
getEjbRelationDescIterator
public Iterator getEjbRelationDescIterator()
- Get iterator of meta-info for all defined relations
- Returns:
- an iterator of EjbRelationDesc
toString
public String toString()
- String representation of the object for test purpose
- Specified by:
toString
in interface IDescriptionGroupDesc
- Overrides:
toString
in class DeploymentDesc
- Returns:
- String representation of this object
Copyright © 2010 OW2 Consortium. All Rights Reserved.