org.ow2.jonas.deployment.client.wrapper
Class ClientManagerWrapper

java.lang.Object
  extended by org.ow2.jonas.deployment.client.wrapper.ClientManagerWrapper

public class ClientManagerWrapper
extends Object

Wrap the call to ClientDeploymentDescManager during JOnAS runtime to solve classloader problem with Digester.

Author:
Guillaume Sauthier

Method Summary
static ClientContainerDeploymentDesc getDeploymentDesc(URL url, ClassLoader moduleCL, ClassLoader earCL)
          Wrap the ClientDeploymentDescManager.getDeploymentDesc(URL, ClassLoader, ClassLoader).
static void setAltDD(URLClassLoader earClassLoader, URL[] clientUrls, URL[] clientsAltDDs)
          Wrap the ClientDeploymentDescManager.getInstance().setAltDD(ClassLoader, URL[], URL[])
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeploymentDesc

public static ClientContainerDeploymentDesc getDeploymentDesc(URL url,
                                                              ClassLoader moduleCL,
                                                              ClassLoader earCL)
                                                       throws ClientContainerDeploymentDescException
Wrap the ClientDeploymentDescManager.getDeploymentDesc(URL, ClassLoader, ClassLoader).

Parameters:
url - URL of the client to deploy
moduleCL - ClassLoader of the Client
earCL - ClassLoader of the application wrapping the client.
Returns:
the ClientContainerDeploymentDesc found at the given URL.
Throws:
ClientContainerDeploymentDescException - When deployment fails.

setAltDD

public static void setAltDD(URLClassLoader earClassLoader,
                            URL[] clientUrls,
                            URL[] clientsAltDDs)
Wrap the ClientDeploymentDescManager.getInstance().setAltDD(ClassLoader, URL[], URL[])

Parameters:
earClassLoader - ClassLoader of the Application wrapping the Client
clientUrls - Array of ClientApplication URL
clientsAltDDs - Array of Client Alternative Deployment Desc URL


Copyright © 2010 OW2 Consortium. All Rights Reserved.