org.ow2.jonas.deployment.ejb
Class DeploymentDescEjb2

java.lang.Object
  extended by org.ow2.jonas.deployment.common.DescriptionGroupDesc
      extended by org.ow2.jonas.deployment.ejb.DeploymentDesc
          extended by 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)

Field Summary
 
Fields inherited from class org.ow2.jonas.deployment.ejb.DeploymentDesc
asd, beanDesc, ejbClientJar, fileName, jonasMDList, logger, specVersion
 
Fields inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc
description, displayName, largeIcon, smallIcon
 
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.
 
Method Summary
 Iterator getEjbRelationDescIterator()
          Get iterator of meta-info for all defined relations
protected  BeanDesc newEntityBeanDesc(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.
 String toString()
          String representation of the object for test purpose
 
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
 
Methods inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc
getDescription, getLargeIcon, getSAXMsg, getSmallIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 used
ejbJar - The EjbJar information, from standard deployment descriptor.
jonasEjbJar - The JonasEjbJar information, from JOnAS specific deployment descriptor.
l - The logger to be used for tracing
FileName - deployment desc's jar or directory name
Throws:
DeploymentDescException - Error when building the Deployment Descriptor
Method Detail

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 used
ent - Entity MetaInformation from XML files
asd - AssemblyDescriptor MetaInformation from XML files
jEnt - JonasEntity MetaInformation from XML files
jMDRList - 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.