|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager
org.objectweb.jonas_client.deployment.lib.ClientDeploymentDescManager
public class ClientDeploymentDescManager
This class provide a way for managing the ClientContainerDeploymentDesc.
Field Summary | |
---|---|
static String |
CLIENT_FILE_NAME
The path to the application-client.xml file. |
static String |
JONAS_CLIENT_FILE_NAME
The path to the jonas-client.xml file. |
Fields inherited from class org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager |
---|
LINK_SEPARATOR |
Method Summary | |
---|---|
int |
getCacheSize()
Get the size of the cache (number of entries in the cache). |
ClientContainerDeploymentDesc |
getDeploymentDesc(URL url,
ClassLoader loaderForCls,
ClassLoader earLoader)
Get the specified web deployment descriptor. |
static ClientDeploymentDescManager |
getInstance()
Get an instance of the ClientDeploymentDescManager. |
static ClientContainerDeploymentDesc |
getInstance(String clientFileName,
ClassLoader classLoaderForCls)
Get an instance of a Client deployment descriptor by parsing the application-client.xml and jonas-client.xml deployment descriptors. |
static ClientContainerDeploymentDesc |
getInstance(String clientFileName,
ClassLoader classLoaderForCls,
String altClientXmlFilename)
Get an instance of a Client deployment descriptor by parsing the application-client.xml and jonas-client.xml deployment descriptors. |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
static ApplicationClient |
loadApplicationClient(Reader reader,
String fileName)
Load the application-client.xml file. |
static JonasClient |
loadJonasClient(Reader reader,
String fileName)
Load the jonas-client.xml file. |
void |
removeCache(ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
setAltDD(ClassLoader earClassLoader,
URL[] urls,
URL[] altDDs)
Set the alt deployment desc which are used instead of the web.xml file which is in the war file. |
static void |
setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors. |
Methods inherited from class org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager |
---|
xmlContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLIENT_FILE_NAME
public static final String JONAS_CLIENT_FILE_NAME
Method Detail |
---|
public static ClientDeploymentDescManager getInstance()
public ClientContainerDeploymentDesc getDeploymentDesc(URL url, ClassLoader loaderForCls, ClassLoader earLoader) throws DeploymentDescException
url
- the url where to load xml deployment descriptors.loaderForCls
- classloader used to load web classes.earLoader
- the ear classloader.
DeploymentDescException
- when
ClientContainerDeploymentDesc cannot be created with the given
files.public static ClientContainerDeploymentDesc getInstance(String clientFileName, ClassLoader classLoaderForCls) throws DeploymentDescException
clientFileName
- the fileName of the client file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.
DeploymentDescException
- if the deployment descriptors are
corrupted.public static ClientContainerDeploymentDesc getInstance(String clientFileName, ClassLoader classLoaderForCls, String altClientXmlFilename) throws DeploymentDescException
clientFileName
- the fileName of the client file for the deployment
descriptors.classLoaderForCls
- the classloader for the classes.altClientXmlFilename
- the fileName to the application-client.xml
for the alt-dd tag in the Ear Case. This is used for specify an
alternate DDesc file.
DeploymentDescException
- if the deployment descriptors are
corrupted.public static ApplicationClient loadApplicationClient(Reader reader, String fileName) throws DeploymentDescException
reader
- the reader of the XML file.fileName
- the name of the file (application-client.xml).
DeploymentDescException
- if the deployment descriptor is
corrupted.public static JonasClient loadJonasClient(Reader reader, String fileName) throws DeploymentDescException
reader
- the stream of the XML file.fileName
- the name of the file (jonas-client.xml).
DeploymentDescException
- if the deployment descriptor is
corrupted.public void removeCache(ClassLoader earClassLoader)
earClassLoader
- the ClassLoader of the ear application to remove
from the cache.public void setAltDD(ClassLoader earClassLoader, URL[] urls, URL[] altDDs)
earClassLoader
- the ear classloader which is used for mapped the
URLs of the wars to the Alt dd.urls
- the urls of the warsaltDDs
- the alt-dd name for the specified war URLspublic int getCacheSize()
public static boolean getParsingWithValidation()
public static void setParsingWithValidation(boolean validation)
validation
- if true, all external entities will be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |