org.ow2.jonas.deployment.ear
Class EarDeploymentDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.AbsDeploymentDesc
      extended by org.ow2.jonas.deployment.ear.EarDeploymentDesc
All Implemented Interfaces:
IDeploymentDesc

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.ow2.jonas.deployment.common.AbsDeploymentDesc
displayName
 
Constructor Summary
EarDeploymentDesc(ClassLoader classLoaderForCls, Application application, JonasApplication jonasApplication)
          Construct an instance of a EarDeploymentDesc.
 
Method Summary
 String[] getAltDDClients()
          Get the alt-dd of the clients of the application.xml file.
 String[] getAltDDConnectors()
          Get the alt-dd of the connectors of the application.xml file.
 String[] getAltDDEjbs()
          Get the alt-dd of the ejbs of the application.xml file.
 String[] getAltDDWebs()
          Get the alt-dd of the wars of the application.xml file.
 String[] getClientTags()
          Get the client tags of the application.xml file.
 String[] getConnectorTags()
          Get the connector tags of the application.xml file.
 String[] getEjbTags()
          Get the ejb tags of the application.xml file.
 String getJonasXmlContent()
          Get the content of the jonas-application xml file
 String[] getSecurityRolesNames()
          Get the security-role names tags
 Map getUserToRoleMapping()
           
 Web[] getWebTags()
          Get the web tags of the application.xml file.
 String getXmlContent()
          Get the content of the xml file
 void setJonasXmlContent(String xml)
          Set the content of the xml file
 void setXmlContent(String xml)
          Set the content of the xml file
 String toString()
          Return a String representation of the EarDeploymentDesc.
 
Methods inherited from class org.ow2.jonas.deployment.common.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(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 String[] getEjbTags()
Get the ejb tags of the application.xml file.

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

getAltDDEjbs

public 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 String[] getClientTags()
Get the client tags of the application.xml file.

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

getAltDDClients

public 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 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 String[] getConnectorTags()
Get the connector tags of the application.xml file.

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

getAltDDConnectors

public 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 String[] getSecurityRolesNames()
Get the security-role names tags

Returns:
the security roles names.

getXmlContent

public String getXmlContent()
Get the content of the xml file

Returns:
the content of the application xml file

getJonasXmlContent

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

Returns:
the content of the jonas-application xml file

setXmlContent

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

Parameters:
xml - the content of the application xml file

setJonasXmlContent

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

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

toString

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

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

getUserToRoleMapping

public Map getUserToRoleMapping()
Returns:
the userToRoleMapping.


Copyright © 2010 OW2 Consortium. All Rights Reserved.