org.objectweb.jonas_ear.deployment.api
Class EarDeploymentDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
      extended by org.objectweb.jonas_ear.deployment.api.EarDeploymentDesc
All Implemented Interfaces:
DeploymentDesc

public class EarDeploymentDesc
extends AbsDeploymentDesc

This class extends the AbsDeploymentDescriptor class of JOnAS It provides a description of the specific EAR desployment descriptor

Author:
Florent Benoit, Ludovic Bert, Helene Joanin

Field Summary
 
Fields inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
displayName
 
Constructor Summary
EarDeploymentDesc(java.lang.ClassLoader classLoaderForCls, Application application, JonasApplication jonasApplication)
          Construct an instance of a EarDeploymentDesc.
 
Method Summary
 java.lang.String[] getAltDDClients()
          Get the alt-dd of the clients of the application.xml file.
 java.lang.String[] getAltDDConnectors()
          Get the alt-dd of the connectors of the application.xml file.
 java.lang.String[] getAltDDEjbs()
          Get the alt-dd of the ejbs of the application.xml file.
 java.lang.String[] getAltDDWebs()
          Get the alt-dd of the wars of the application.xml file.
 java.lang.String[] getClientTags()
          Get the client tags of the application.xml file.
 java.lang.String[] getConnectorTags()
          Get the connector tags of the application.xml file.
 java.lang.String[] getEjbTags()
          Get the ejb tags of the application.xml file.
 java.lang.String getJonasXmlContent()
          Get the content of the jonas-application xml file
 java.lang.String[] getSecurityRolesNames()
          Get the security-role names tags
 java.util.Map getUserToRoleMapping()
           
 Web[] getWebTags()
          Get the web tags of the application.xml file.
 java.lang.String getXmlContent()
          Get the content of the xml file
 void setJonasXmlContent(java.lang.String xml)
          Set the content of the xml file
 void setXmlContent(java.lang.String xml)
          Set the content of the xml file
 java.lang.String toString()
          Return a String representation of the EarDeploymentDesc.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
getDisplayName, getSAXMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EarDeploymentDesc

public EarDeploymentDesc(java.lang.ClassLoader classLoaderForCls,
                         Application application,
                         JonasApplication jonasApplication)
                  throws EarDeploymentDescException
Construct an instance of a EarDeploymentDesc. Called by the getInstance() method.

Parameters:
classLoaderForCls - ClassLoader of the classes .
application - application.xml parsed file.
jonasApplication - jonas-application.xml parsed file.
Throws:
EarDeploymentDescException - if we can't build an instance.
Method Detail

getEjbTags

public java.lang.String[] getEjbTags()
Get the ejb tags of the application.xml file.

Returns:
the ejb tags of the application.xml file.

getAltDDEjbs

public java.lang.String[] getAltDDEjbs()
Get the alt-dd of the ejbs of the application.xml file.

Returns:
the alt-dd of the ejbs of the application.xml file.

getClientTags

public java.lang.String[] getClientTags()
Get the client tags of the application.xml file.

Returns:
the client tags of the application.xml file.

getAltDDClients

public java.lang.String[] getAltDDClients()
Get the alt-dd of the clients of the application.xml file.

Returns:
the alt-dd of the clients of the application.xml file.

getWebTags

public Web[] getWebTags()
Get the web tags of the application.xml file.

Returns:
the web tags of the application.xml file.

getAltDDWebs

public java.lang.String[] getAltDDWebs()
Get the alt-dd of the wars of the application.xml file.

Returns:
the alt-dd of the wars of the application.xml file.

getConnectorTags

public java.lang.String[] getConnectorTags()
Get the connector tags of the application.xml file.

Returns:
the connector tags of the application.xml file.

getAltDDConnectors

public java.lang.String[] getAltDDConnectors()
Get the alt-dd of the connectors of the application.xml file.

Returns:
the alt-dd of the connectors of the application.xml file.

getSecurityRolesNames

public java.lang.String[] getSecurityRolesNames()
Get the security-role names tags

Returns:
the security roles names.

getXmlContent

public java.lang.String getXmlContent()
Get the content of the xml file

Returns:
the content of the application xml file

getJonasXmlContent

public java.lang.String getJonasXmlContent()
Get the content of the jonas-application xml file

Returns:
the content of the jonas-application xml file

setXmlContent

public void setXmlContent(java.lang.String xml)
Set the content of the xml file

Parameters:
xml - the content of the application xml file

setJonasXmlContent

public void setJonasXmlContent(java.lang.String xml)
Set the content of the xml file

Parameters:
xml - the content of the jonas-application xml file

toString

public java.lang.String toString()
Return a String representation of the EarDeploymentDesc.

Specified by:
toString in interface DeploymentDesc
Specified by:
toString in class AbsDeploymentDesc
Returns:
a String representation of the EarDeploymentDesc.

getUserToRoleMapping

public java.util.Map getUserToRoleMapping()
Returns:
the userToRoleMapping.