org.ow2.jonas.deployment.common.lib
Class AbsDeploymentDescManager

java.lang.Object
  extended by org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
All Implemented Interfaces:
DeploymentDescManager
Direct Known Subclasses:
ClientDeploymentDescManager, ClusterDaemonConfigurationManager, DomainMapManager, EarDeploymentDescManager, EjbDeploymentDescManager, RarDeploymentDescManager, WebDeploymentDescManager, WSDeploymentDescManager

public abstract class AbsDeploymentDescManager
extends Object
implements DeploymentDescManager

Abstract class of DeploymentDesc manager. Use for common methods.

Author:
Florent Benoit

Field Summary
static String LINK_SEPARATOR
          Char separator in a link.
 
Constructor Summary
protected AbsDeploymentDescManager()
          Utility class, no public constructor
 
Method Summary
static boolean containsResource(String resourceName, AbsEnvironmentElement env)
           
protected static JonasServiceRef findJonasServiceRef(List jonasServiceRefList, String name)
          Find a jonas-service-ref element with a given name.
protected static void mergeWebServiceRef(JonasServiceRef jsr, org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef wsr)
          Merge into the Jax WS service ref some data from the jonas-xxx.xml files
protected static String xmlContent(InputStream in)
          Return the content of the inut stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINK_SEPARATOR

public static final String LINK_SEPARATOR
Char separator in a link.

See Also:
Constant Field Values
Constructor Detail

AbsDeploymentDescManager

protected AbsDeploymentDescManager()
Utility class, no public constructor

Method Detail

xmlContent

protected static String xmlContent(InputStream in)
                            throws IOException
Return the content of the inut stream

Parameters:
in - the given input stream
Returns:
the content of the inut stream
Throws:
IOException - if the file can't be read

findJonasServiceRef

protected static JonasServiceRef findJonasServiceRef(List jonasServiceRefList,
                                                     String name)
Find a jonas-service-ref element with a given name.

Parameters:
jonasServiceRefList - the list of elements to search in
name - the name
Returns:
a jonas-service-ref element matching the given name or null if not found

containsResource

public static boolean containsResource(String resourceName,
                                       AbsEnvironmentElement env)
Returns:
true if the resource name is already present as a resource-ref or resource-env-ref

mergeWebServiceRef

protected static void mergeWebServiceRef(JonasServiceRef jsr,
                                         org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef wsr)
Merge into the Jax WS service ref some data from the jonas-xxx.xml files

Parameters:
jsr - the XML struct of the JOnAS service ref
wsr - the JAX WS metadata which has been merged


Copyright © 2010 OW2 Consortium. All Rights Reserved.