org.objectweb.jonas_rar.deployment.api
Class RarDeploymentDesc

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

public class RarDeploymentDesc
extends AbsDeploymentDesc

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

Author:
Eric Hardesty

Field Summary
 
Fields inherited from class org.objectweb.jonas_lib.deployment.api.AbsDeploymentDesc
displayName
 
Constructor Summary
RarDeploymentDesc(java.lang.ClassLoader classLoader, Connector connector, JonasConnector jonasConnector)
          Construct an instance of a RarDeploymentDesc.
 
Method Summary
 Connector getConnector()
          Get the current Connector
 ConnectorDesc getConnectorDesc()
          Get the current ConnectorDesc.
 JonasConfigPropertyDesc[] getJonasConfigPropTags()
          Get the config-property tags of the jonas-ra.xml file.
 JonasConnectorDesc getJonasConnectorDesc()
          Get the current JonasConnectorDesc.
 java.lang.String getJOnASXmlContent()
          Return the content of the jonas-ra.xml file
 ConfigPropertyDesc[] getRaConfigPropTags()
          Get the config-property tags of the ra.xml file.
 java.lang.String getXmlContent()
          Return the content of the ra.xml file
 void setJOnASXmlContent(java.lang.String jXml)
          Set the content of the jonas-ra.xml file
 void setRaConfigPropTags(Connector conn)
          Set the config-property tags of the ra.xml file.
 void setXmlContent(java.lang.String xml)
          Set the content of the ra.xml file
 java.lang.String toString()
          Return a String representation of the RarDeploymentDesc.
 
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

RarDeploymentDesc

public RarDeploymentDesc(java.lang.ClassLoader classLoader,
                         Connector connector,
                         JonasConnector jonasConnector)
                  throws RarDeploymentDescException
Construct an instance of a RarDeploymentDesc. Called by the RarDeploymentDescManager.getInstance() method.

Parameters:
classLoader - ClassLoader of the classes .
connector - ra.xml parsed file.
jonasConnector - jonas-ra.xml parsed file.
Throws:
RarDeploymentDescException - if we can't build an instance.
Method Detail

setRaConfigPropTags

public void setRaConfigPropTags(Connector conn)
Set the config-property tags of the ra.xml file.

Parameters:
conn - the Connector objeect with the config-property tags of the ra.xml file.

getRaConfigPropTags

public ConfigPropertyDesc[] getRaConfigPropTags()
Get the config-property tags of the ra.xml file.

Returns:
the config-property tags of the ra.xml file.

getJonasConfigPropTags

public JonasConfigPropertyDesc[] getJonasConfigPropTags()
Get the config-property tags of the jonas-ra.xml file.

Returns:
the config-property tags of the jonas-ra.xml file.

toString

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

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

getConnector

public Connector getConnector()
Get the current Connector

Returns:
the current Connector.

getConnectorDesc

public ConnectorDesc getConnectorDesc()
Get the current ConnectorDesc.

Returns:
the current ConnectorDesc.

getJonasConnectorDesc

public JonasConnectorDesc getJonasConnectorDesc()
Get the current JonasConnectorDesc.

Returns:
the current JonasConnectorDesc.

getXmlContent

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

Returns:
the content of the ra.xml file

getJOnASXmlContent

public java.lang.String getJOnASXmlContent()
Return the content of the jonas-ra.xml file

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

setXmlContent

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

Parameters:
xml - the content of the file

setJOnASXmlContent

public void setJOnASXmlContent(java.lang.String jXml)
Set the content of the jonas-ra.xml file

Parameters:
jXml - the content of the file