org.objectweb.jonas_web.deployment.lib.wrapper
Class WebManagerWrapper

java.lang.Object
  extended by org.objectweb.jonas_web.deployment.lib.wrapper.WebManagerWrapper

public class WebManagerWrapper
extends java.lang.Object

Wrap the WebDeploymentDescManager to solve ClassLoader problems linked to Digester.

Author:
Guillaume Sauthier

Method Summary
static WebContainerDeploymentDesc getDeploymentDesc(java.lang.String warName, java.lang.ClassLoader cl)
          Wrap the WebDeploymentDescManager.getDeploymentDesc() call.
static WebContainerDeploymentDesc getDeploymentDesc(java.net.URL url, java.lang.ClassLoader moduleCL, java.lang.ClassLoader earCL)
          Wrap the WebDeploymentDescManager.getInstance().getDeploymentDesc() call.
static void removeCache(java.lang.ClassLoader classLoader)
          Wrap the WebDeploymentDescManager.getInstance().removeCache() call.
static void setAltDD(java.net.URLClassLoader earClassLoader, java.net.URL[] warUrls, java.net.URL[] warsAltDDs)
          Wrap the WebDeploymentDescManager.getInstance().setAltDD() call.
static void setParsingWithValidation(boolean b)
          Wrap the WebDeploymentDescManager.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 WebContainerDeploymentDesc getDeploymentDesc(java.net.URL url,
                                                           java.lang.ClassLoader moduleCL,
                                                           java.lang.ClassLoader earCL)
                                                    throws WebContainerDeploymentDescException
Wrap the WebDeploymentDescManager.getInstance().getDeploymentDesc() call.

Parameters:
url - WebApp URL
moduleCL - WebApp module ClassLoader
earCL - Application ClassLoader
Returns:
the WebContainerDeploymentDesc of the given WebApp
Throws:
WebContainerDeploymentDescException - When WebContainerDeploymentDesc cannot be instanciated

setAltDD

public static void setAltDD(java.net.URLClassLoader earClassLoader,
                            java.net.URL[] warUrls,
                            java.net.URL[] warsAltDDs)
Wrap the WebDeploymentDescManager.getInstance().setAltDD() call.

Parameters:
earClassLoader - Application ClassLoader
warUrls - Array of WebApp URLs
warsAltDDs - Array of Alternatives WebApp Descriptor URL

setParsingWithValidation

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

Parameters:
b - true/false

removeCache

public static void removeCache(java.lang.ClassLoader classLoader)
Wrap the WebDeploymentDescManager.getInstance().removeCache() call.

Parameters:
classLoader - WebApp ClassLoader

getDeploymentDesc

public static WebContainerDeploymentDesc getDeploymentDesc(java.lang.String warName,
                                                           java.lang.ClassLoader cl)
                                                    throws WebContainerDeploymentDescException
Wrap the WebDeploymentDescManager.getDeploymentDesc() call.

Parameters:
warName - war filename
cl - WebApp ClassLoader
Returns:
the WebContainerDeploymentDesc of the given WebApp
Throws:
WebContainerDeploymentDescException - When WebContainerDeploymentDesc cannot be instanciated