org.ow2.jonas.deployment.client
Class ClientContainerDeploymentDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.DescriptionGroupDesc
      extended by org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc
          extended by org.ow2.jonas.deployment.client.ClientContainerDeploymentDesc
All Implemented Interfaces:
IDescriptionGroupDesc, IJNDIEnvRefsGroupDesc

public class ClientContainerDeploymentDesc
extends JndiEnvRefsGroupDesc

This class do the parsing of the application-client.xml file and jonas-client.xml files and contruct a data structure associated to these two files.

Author:
Florent Benoit, Philippe Coq

Field Summary
 
Fields inherited from class org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc
logger
 
Fields inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc
description, displayName, largeIcon, smallIcon
 
Constructor Summary
ClientContainerDeploymentDesc(ClassLoader classLoader, ApplicationClient applicationClient, JonasClient jonasClient)
          Construct an instance of a ClientContainerDeploymentDesc.
Constructor is private, call one of the static getInstance method instead.
 
Method Summary
 String getCallbackHandler()
          Get the callback handler of this client application.
 org.ow2.util.ee.metadata.car.api.ICarDeployableMetadata getCarDeployableMetadata()
           
 String getJaasEntry()
          Get the entry in the jaas configuration file
 String getJaasFile()
          Get the name of the jaas configuration file
 String getJOnASXmlContent()
          Return the content of the jonas-web.xml file
 String getPassword()
          Get the password used for a callback handler
 String getUsername()
          Get the username used for a callback handler
 String getXmlContent()
          Return the content of the web.xml file
 void setCarMetadata(org.ow2.util.ee.metadata.car.api.ICarDeployableMetadata carDeployableMetadata)
          Store a reference to this application-client metadatas
 void setJOnASXmlContent(String jonasXmlContent)
           
 void setXmlContent(String xmlContent)
           
 String toString()
          Return a String representation of the ClientContainerDeploymentDesc.
 
Methods inherited from class org.ow2.jonas.deployment.common.JndiEnvRefsGroupDesc
getEjbLocalRefDesc, getEjbRefDesc, getENCBindingHolder, getEnvEntryDesc, getMessageDestinationRefDesc, getPersistenceUnitRefs, getResourceEnvRefDesc, getResourceRefDesc, getServiceRefDesc, setENCBindingHolder
 
Methods inherited from class org.ow2.jonas.deployment.common.DescriptionGroupDesc
getDescription, getDisplayName, getLargeIcon, getSAXMsg, getSmallIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClientContainerDeploymentDesc

public ClientContainerDeploymentDesc(ClassLoader classLoader,
                                     ApplicationClient applicationClient,
                                     JonasClient jonasClient)
                              throws DeploymentDescException
Construct an instance of a ClientContainerDeploymentDesc.
Constructor is private, call one of the static getInstance method instead.

Parameters:
classLoader - the classloader for the classes.
applicationClient - the data structure of the application-client (application-client.xml)
jonasClient - the data structure of the jonas-client (jonas-client.xml)
Throws:
DeploymentDescException - if the deployment descriptors are corrupted.
Method Detail

getJaasFile

public String getJaasFile()
Get the name of the jaas configuration file

Returns:
the name of the jaas configuration file

getJaasEntry

public String getJaasEntry()
Get the entry in the jaas configuration file

Returns:
the entry in the jaas configuration file

getUsername

public String getUsername()
Get the username used for a callback handler

Returns:
the username used for a callback handler

getPassword

public String getPassword()
Get the password used for a callback handler

Returns:
the password used for a callback handler

getCallbackHandler

public String getCallbackHandler()
Get the callback handler of this client application.

Returns:
the callback handler of this client application.

getXmlContent

public String getXmlContent()
Return the content of the web.xml file

Returns:
the content of the web.xml file

getJOnASXmlContent

public String getJOnASXmlContent()
Return the content of the jonas-web.xml file

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

setXmlContent

public void setXmlContent(String xmlContent)
Parameters:
xmlContent - XML Content

setJOnASXmlContent

public void setJOnASXmlContent(String jonasXmlContent)
Parameters:
jonasXmlContent - XML Content

toString

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

Specified by:
toString in interface IDescriptionGroupDesc
Specified by:
toString in class DescriptionGroupDesc
Returns:
a String representation of the ClientContainerDeploymentDesc.

setCarMetadata

public void setCarMetadata(org.ow2.util.ee.metadata.car.api.ICarDeployableMetadata carDeployableMetadata)
Store a reference to this application-client metadatas

Parameters:
carDeployableMetadata - application-client metadatas

getCarDeployableMetadata

public org.ow2.util.ee.metadata.car.api.ICarDeployableMetadata getCarDeployableMetadata()
Returns:
this application-client metadatas.


Copyright © 2010 OW2 Consortium. All Rights Reserved.