org.objectweb.jonas_ejb.deployment.api.DeploymentDesc Class Reference

Inherited by org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb1_1, and org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.

Inheritance diagram for org.objectweb.jonas_ejb.deployment.api.DeploymentDesc:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.deployment.api.DeploymentDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DeploymentDesc (ClassLoader classLoader, EjbJar ejbJar, JonasEjbJar jonasEjbJar, Logger l, String fileName) throws DeploymentDescException
Iterator getBeanDescIterator ()
BeanDesc[] getBeanDesc ()
String[] getRolesForRunAsPrincipal (String principalName)
BeanDesc getBeanDesc (String ejbName)
EntityCmp2Desc asn2BeanDesc (String asn)
List getMethodPermissionsDescList ()
ExcludeListDesc getExcludeListDesc ()
BeanDesc getBeanDescWithLocalInterface (String itfLocalName)
boolean getMessageDestination (String mdLink)
JonasMessageDestination getJonasMessageDestination (String mdLink)
String getDisplayName ()
String getEjbClientJar ()
Logger getLogger ()
void setLogger (Logger logger)
String getXmlContent ()
String getJOnASXmlContent ()
String toString ()
void setXmlContent (String xmlContent)
void setJOnASXmlContent (String jonasXmlContent)

Protected Member Functions

abstract BeanDesc newEntityBeanDesc (ClassLoader cl, Entity ent, AssemblyDescriptor asd, JonasEntity j, JLinkedList jMDRList) throws DeploymentDescException

Protected Attributes

Logger logger
String specVersion = null
HashMap beanDesc = new HashMap()
AssemblyDescriptor asd = null
String fileName = null
String ejbClientJar = null
JLinkedList jonasMDList = null

Detailed Description

Class to hold meta-information related to the deployment of an ejb-jar
Author:
Christophe Ney [cney@batisseurs.com] : Initial developer

Helene Joanin

Philippe Durieux

Markus Karg (Novell port)

Philippe Coq

Definition at line 61 of file DeploymentDesc.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc ClassLoader  classLoader,
EjbJar  ejbJar,
JonasEjbJar  jonasEjbJar,
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
Exceptions:
DeploymentDescException Cannot deploy bean

Definition at line 135 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.asd, org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc, org.objectweb.jonas_ejb.deployment.api.BeanDesc.check(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.ejbClientJar, org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.fileName, org.objectweb.jonas_ejb.deployment.api.BeanDesc.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.CommonEjb.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.JonasCommonEjb.getEjbName(), org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor.getExcludeList(), org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor.getMethodPermissionList(), org.objectweb.jonas_ejb.deployment.xml.Entity.getPersistenceType(), org.objectweb.jonas_ejb.deployment.xml.JonasRunAsMapping.getPrincipalName(), org.objectweb.jonas_ejb.deployment.xml.JonasRunAsMapping.getRoleNamesList(), org.objectweb.jonas_ejb.deployment.xml.Session.getSessionType(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.jonasMDList, org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.logger, org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.newEntityBeanDesc(), org.objectweb.jonas_ejb.deployment.api.BeanDesc.setDeploymentDesc(), org.objectweb.jonas_ejb.deployment.xml.JonasCommonEjb.setEjbName(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.specVersion.

Here is the call graph for this function:


Member Function Documentation

EntityCmp2Desc org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.asn2BeanDesc String  asn  ) 
 

Get bean descriptor given its abstract schema name

Parameters:
asn Abstract Schema Name
Returns:
null if it doesn't exist.

Definition at line 317 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc.

BeanDesc org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDesc String  ejbName  ) 
 

Get bean descriptor given its name

Parameters:
ejbName the name of the bean in the Deployment Descriptor
Returns:
bean descriptor given its name

Definition at line 308 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc.

BeanDesc [] org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDesc  ) 
 

Get descriptors for all beans contained in jar file

Returns:
Array of bean's descriptors

Definition at line 285 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer(), org.objectweb.jonas_ejb.deployment.lib.EjbDeploymentDescManager.getJndiName(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.toString().

Iterator org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDescIterator  ) 
 

Get an Iterator on the Bean Desc list

Returns:
Iterator on BeanDesc

Definition at line 277 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc.

Referenced by org.objectweb.jonas_ejb.container.PermissionManager.translateEjbSecurityRoleRef().

BeanDesc org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDescWithLocalInterface String  itfLocalName  ) 
 

Get bean descriptor given its interface local name

Parameters:
itfLocalName local interface name
Returns:
null if it doesn't exist.

Definition at line 353 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc, and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getLocalClass().

Referenced by org.objectweb.jonas_ejb.genic.VcParam.VcParam().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getDisplayName  ) 
 

Get the display name

Returns:
the Display name string, from the deployment descriptor.

Definition at line 424 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.toString().

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getEjbClientJar  ) 
 

Get the ejb-client-jar name

Returns:
the ejb-client-jar string, from the deployment descriptor (may be null).

Definition at line 432 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.toString().

ExcludeListDesc org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getExcludeListDesc  ) 
 

Get the exclude list of the assembly descriptor

Returns:
the exclude list of the assembly descriptor

Definition at line 343 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.container.PermissionManager.translateEjbExcludeList().

JonasMessageDestination org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getJonasMessageDestination String  mdLink  ) 
 

Get the JOnAS message destination for the given name

Parameters:
mdLink the name of the message destination link in the Deployment Descriptor
Returns:
the jonas message destination given the name

Definition at line 388 of file DeploymentDesc.java.

References org.objectweb.jonas_lib.deployment.xml.JonasMessageDestination.getMessageDestinationName(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.jonasMDList.

Here is the call graph for this function:

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getJOnASXmlContent  ) 
 

Return the content of the jonas-web.xml file

Returns:
the content of the jonas-web.xml file

Definition at line 465 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer().

Logger org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getLogger  ) 
 

get the current logger

Returns:
the Logger

Definition at line 441 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.BeanDesc.setDeploymentDesc().

boolean org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getMessageDestination String  mdLink  ) 
 

Find the JOnAS message destination for the given name

Parameters:
mdLink the name of the message destination link in the Deployment Descriptor
Returns:
boolean if link was found

Definition at line 370 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.asd, org.objectweb.jonas_ejb.deployment.xml.AssemblyDescriptor.getMessageDestinationList(), and org.objectweb.jonas_lib.deployment.xml.MessageDestination.getMessageDestinationName().

Here is the call graph for this function:

List org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getMethodPermissionsDescList  ) 
 

Get the list of the methodPermissionDesc objects which represent method-permission elements in assembly-descriptor

Returns:
the list of methodPermissionDesc objects

Definition at line 335 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.container.PermissionManager.translateEjbMethodPermission().

String [] org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getRolesForRunAsPrincipal String  principalName  ) 
 

Gets the Mapping for run-as principal

Parameters:
principalName name of the run-as principal
Returns:
array of roles

Definition at line 299 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.container.JFactory.checkSecurity().

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getXmlContent  ) 
 

Return the content of the web.xml file

Returns:
the content of the web.xml file

Definition at line 457 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.createContainer().

abstract BeanDesc org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.newEntityBeanDesc ClassLoader  cl,
Entity  ent,
AssemblyDescriptor  asd,
JonasEntity  j,
JLinkedList  jMDRList
throws DeploymentDescException [protected, pure virtual]
 

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.

Parameters:
cl The ClassLoader to be used
ent Entity MetaInformation from XML files
asd AssemblyDescriptor MetaInformation from XML files
j JonasEntity MetaInformation from XML files
jMDRList MessageDrivenRef list
Returns:
The Entity Bean Descriptor, for the good CMP version.
Exceptions:
DeploymentDescException Cannot build Entity Descriptor

Implemented in org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb1_1, and org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc().

void org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.setJOnASXmlContent String  jonasXmlContent  ) 
 

Parameters:
jonasXmlContent XML Content

Definition at line 495 of file DeploymentDesc.java.

void org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.setLogger Logger  logger  ) 
 

set the current logger

Parameters:
logger the Logger

Definition at line 449 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.logger.

void org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.setXmlContent String  xmlContent  ) 
 

Parameters:
xmlContent XML Content

Definition at line 488 of file DeploymentDesc.java.

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.toString  ) 
 

String representation of the object for test purpose

Returns:
String representation of this object

Reimplemented in org.objectweb.jonas_ejb.deployment.api.DeploymentDescEjb2.

Definition at line 473 of file DeploymentDesc.java.

References org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDesc(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getDisplayName(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getEjbClientJar(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.toString().

Here is the call graph for this function:


Member Data Documentation

AssemblyDescriptor org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.asd = null [protected]
 

Assembly descriptor

Definition at line 82 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getMessageDestination().

HashMap org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.beanDesc = new HashMap() [protected]
 

Set of enterprise beans deployment descriptors

Definition at line 77 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.asn2BeanDesc(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDesc(), org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDescIterator(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getBeanDescWithLocalInterface().

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.ejbClientJar = null [protected]
 

Deployment desc's file name (jar or directory)

Definition at line 92 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc().

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.fileName = null [protected]
 

Deployment desc's file name (jar or directory)

Definition at line 87 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc().

JLinkedList org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.jonasMDList = null [protected]
 

List of JonasMessageDestinations

Definition at line 107 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), and org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.getJonasMessageDestination().

Logger org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.logger [protected]
 

Logger

Definition at line 66 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc(), and org.objectweb.jonas_ejb.container.jorm.MedorFactory.init().

String org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.specVersion = null [protected]
 

Ejb spec version

Definition at line 72 of file DeploymentDesc.java.

Referenced by org.objectweb.jonas_ejb.deployment.api.DeploymentDesc.DeploymentDesc().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:11:07 2005 for JOnAS by  doxygen 1.3.9.1