org.ow2.jonas.deployment.rar.wrapper
Class RarManagerWrapper

java.lang.Object
  extended by org.ow2.jonas.deployment.rar.wrapper.RarManagerWrapper

public class RarManagerWrapper
extends Object

Wrap the RarDeploymentDescManager in this class to solve the ClassLoader problem of Digester.

Author:
Guillaume Sauthier

Method Summary
static RarDeploymentDesc getInstance(Context ctx)
          Wrap the RarDeploymentDescManager.getInstance(Context).
static RarDeploymentDesc getRarDeploymentDesc(String rar, ClassLoader cl)
          Returns the RarDeploymentDesc corresponding to the Rar filename.
static void setParsingWithValidation(boolean b)
          Wrap the RarDeploymentDescManager.setParsingWithValidation(boolean)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRarDeploymentDesc

public static RarDeploymentDesc getRarDeploymentDesc(String rar,
                                                     ClassLoader cl)
                                              throws DeploymentDescException
Returns the RarDeploymentDesc corresponding to the Rar filename.

Parameters:
rar - Rar filename
cl - ClassLoader to use
Returns:
the RarDeploymentDesc corresponding to the Rar filename
Throws:
DeploymentDescException - when Rar deployment fails

setParsingWithValidation

public static void setParsingWithValidation(boolean b)
Wrap the RarDeploymentDescManager.setParsingWithValidation(boolean)

Parameters:
b - boolean

getInstance

public static RarDeploymentDesc getInstance(Context ctx)
                                     throws DeploymentDescException
Wrap the RarDeploymentDescManager.getInstance(Context).

Parameters:
ctx - Context
Returns:
RarDeploymentDesc
Throws:
DeploymentDescException - When init fails


Copyright © 2010 OW2 Consortium. All Rights Reserved.