org.objectweb.jonas_ws.deployment.lib.wrapper
Class WSManagerWrapper

java.lang.Object
  extended by org.objectweb.jonas_ws.deployment.lib.wrapper.WSManagerWrapper

public class WSManagerWrapper
extends java.lang.Object

Wrap the WSDeploymentDescManager to solve ClassLoader problems linked to Digester.

Author:
Guillaume Sauthier

Method Summary
static WSDeploymentDesc getDeploymentDesc(java.net.URL url, java.lang.ClassLoader moduleCL, java.lang.ClassLoader earCL)
          Wrap the WSDeploymentDescManager.getInstance().getDeploymentDesc(url, moduleCL, earCL) call.
static WSDeploymentDesc getDeploymentDesc(java.net.URL url, java.net.URL unpackedURL, java.lang.ClassLoader moduleCL, java.lang.ClassLoader earCL)
          Wrap the WSDeploymentDescManager.getInstance().getDeploymentDesc(url, url, moduleCL, earCL) call.
static void removeCache(java.lang.ClassLoader cl)
          Wrap the WSDeploymentDescManager.getInstance().removeCache() call.
static void setParsingWithValidation(boolean b)
          Wrap the WSDeploymentDescManager.setParsingWithValidation() call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeploymentDesc

public static WSDeploymentDesc getDeploymentDesc(java.net.URL url,
                                                 java.lang.ClassLoader moduleCL,
                                                 java.lang.ClassLoader earCL)
                                          throws WSDeploymentDescException
Wrap the WSDeploymentDescManager.getInstance().getDeploymentDesc(url, moduleCL, earCL) call.

Parameters:
url - module URL
moduleCL - module ClassLoader
earCL - Application ClassLoader
Returns:
the WSDeploymentDesc of the given module
Throws:
WSDeploymentDescException - When WSDeploymentDesc cannot be instanciated.

getDeploymentDesc

public static WSDeploymentDesc getDeploymentDesc(java.net.URL url,
                                                 java.net.URL unpackedURL,
                                                 java.lang.ClassLoader moduleCL,
                                                 java.lang.ClassLoader earCL)
                                          throws WSDeploymentDescException
Wrap the WSDeploymentDescManager.getInstance().getDeploymentDesc(url, url, moduleCL, earCL) call.

Parameters:
url - module URL
unpackedURL - unpacked URL of the module (may be null)
moduleCL - module ClassLoader
earCL - Application ClassLoader
Returns:
the WSDeploymentDesc of the given module
Throws:
WSDeploymentDescException - When WSDeploymentDesc cannot be instanciated.

setParsingWithValidation

public static void setParsingWithValidation(boolean b)
Wrap the WSDeploymentDescManager.setParsingWithValidation() call.

Parameters:
b - true/false

removeCache

public static void removeCache(java.lang.ClassLoader cl)
Wrap the WSDeploymentDescManager.getInstance().removeCache() call.

Parameters:
cl - WebApp ClassLoader