|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager org.objectweb.jonas_ws.deployment.lib.WSDeploymentDescManager
public class WSDeploymentDescManager
This class provide a way for managing the WSDeploymentDesc. Note that there is 1 instance of the WSDeploymentDescManager on each JOnAS server.
Field Summary | |
---|---|
static java.lang.String |
JONAS_WS_EJBJAR_FILE_NAME
jonas-ejb-jar.xml filename |
static java.lang.String |
JONAS_WS_WEBAPP_FILE_NAME
jonas-ejb-jar.xml filename |
static java.lang.String |
WS_EJBJAR_FILE_NAME
ejb-jar.xml filename |
static java.lang.String |
WS_WEBAPP_FILE_NAME
ejb-jar.xml filename |
Fields inherited from class org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager |
---|
LINK_SEPARATOR |
Method Summary | |
---|---|
void |
clearCache()
Clear the cache. |
int |
getCacheSize()
Get the size of the cache (number of entries in the cache). |
static WSDeploymentDesc |
getDeploymentDesc(java.lang.String file,
java.lang.ClassLoader jarCL)
Get the specified WebService deployment descriptor. |
WSDeploymentDesc |
getDeploymentDesc(java.net.URL url,
java.lang.ClassLoader jarCL,
java.lang.ClassLoader earCL)
Get the specified ws deployment descriptor and put it in the cache if it is not in. |
WSDeploymentDesc |
getDeploymentDesc(java.net.URL url,
java.net.URL unpackedURL,
java.lang.ClassLoader jarCL,
java.lang.ClassLoader earCL)
Get the specified ws deployment descriptor and put it in the cache if it is not in. |
static WSDeploymentDescManager |
getInstance()
Get the unique instance of the WSDeploymentDescManager. |
static boolean |
getParsingWithValidation()
Controls whether the parser is reporting all validity errors. |
PortComponentDesc |
getPortComponentDesc(java.net.URL callerURL,
java.lang.String portComponentLinkName,
java.lang.ClassLoader moduleLoader,
java.lang.ClassLoader earLoader)
Return the port component desc from the pcLink string. |
static JonasWebservices |
loadJonasWebservices(java.io.Reader reader,
java.lang.String fileName)
return a 'xml' object containing jonas-webservices.xml informations |
static Webservices |
loadWebservices(java.io.Reader reader,
java.lang.String fileName)
return a 'xml' object containing webservices.xml informations |
void |
removeCache(java.lang.ClassLoader cl)
Remove the DD cache for the specified ClassLoader |
static void |
setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors. |
java.lang.String |
toString()
Return a string representation of the cache. |
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, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WS_EJBJAR_FILE_NAME
public static final java.lang.String JONAS_WS_EJBJAR_FILE_NAME
public static final java.lang.String WS_WEBAPP_FILE_NAME
public static final java.lang.String JONAS_WS_WEBAPP_FILE_NAME
Method Detail |
---|
public static WSDeploymentDescManager getInstance()
public static WSDeploymentDesc getDeploymentDesc(java.lang.String file, java.lang.ClassLoader jarCL) throws WSDeploymentDescException
file
- module (ejbjar or war). It is required that file is not a
directory.jarCL
- the classloader where classes are stored.
WSDeploymentDescException
- when WSDeploymentDesc cannot be created
with the given files.public WSDeploymentDesc getDeploymentDesc(java.net.URL url, java.lang.ClassLoader jarCL, java.lang.ClassLoader earCL) throws WSDeploymentDescException
url
- module (ejbjar or war). It can be a directory or a jar file.jarCL
- classloader used to load bean classes.earCL
- the parent classloader (the ear classloader). Null when not
in the case of an ear application.
WSDeploymentDescException
- when WSDeploymentDesc cannot be created
with the given files.public WSDeploymentDesc getDeploymentDesc(java.net.URL url, java.net.URL unpackedURL, java.lang.ClassLoader jarCL, java.lang.ClassLoader earCL) throws WSDeploymentDescException
url
- module (ejbjar or war). It can be a directory or a jar file.unpackedURL
- Unpacked URL of the module archivejarCL
- classloader used to load bean classes.earCL
- the parent classloader (the ear classloader). Null when not
in the case of an ear application.
WSDeploymentDescException
- when WSDeploymentDesc cannot be created
with the given files.public static Webservices loadWebservices(java.io.Reader reader, java.lang.String fileName) throws WSDeploymentDescException
reader
- webservices.xml file input stream readerfileName
- webservices.xml file name
WSDeploymentDescException
- when Webservices cannot be created with
the given files.public static JonasWebservices loadJonasWebservices(java.io.Reader reader, java.lang.String fileName) throws WSDeploymentDescException
reader
- jonas-webservices.xml file input stream readerfileName
- jonas-webservices.xml file name
WSDeploymentDescException
- when JonasWebservices cannot be created
with the given files.public int getCacheSize()
public void clearCache()
public void removeCache(java.lang.ClassLoader cl)
cl
- the Key ClassLoaderpublic java.lang.String toString()
toString
in class java.lang.Object
public static boolean getParsingWithValidation()
public static void setParsingWithValidation(boolean validation)
validation
- if true, all external entities will be read.public PortComponentDesc getPortComponentDesc(java.net.URL callerURL, java.lang.String portComponentLinkName, java.lang.ClassLoader moduleLoader, java.lang.ClassLoader earLoader) throws WSDeploymentDescException
callerURL
- the url of the module being parsed. This is needed because
pcLink is relative. With the url and the pcLink, we can know where
the file is locate.portComponentLinkName
- the pcLink tag of an port-component-ref.earLoader
- the classloader of the ear.moduleLoader
- classlaoder of the current module
WSDeploymentDescException
- when it failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |