org.objectweb.jonas_domain.lib.wrapper
Class DomainManagerWrapper

java.lang.Object
  extended by org.objectweb.jonas_domain.lib.wrapper.DomainManagerWrapper

public class DomainManagerWrapper
extends java.lang.Object

Wrapper for the DomainMapManager class. Uses introspection.

Author:
Adriana Danes, S. Ali Tokmen

Method Summary
static DomainMap getDomainMap(java.lang.String domainFileName, java.lang.ClassLoader cl)
          Wrap DomainMapManager.getDeploymentDesc(domainFileName, cl)
static void saveDomain(Domain domain, java.lang.String fileName)
          Load the domain.xml file.
static void setParsingWithValidation(boolean b)
          Wrap DomainMapManager.setParsingWithValidation(b)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDomainMap

public static DomainMap getDomainMap(java.lang.String domainFileName,
                                     java.lang.ClassLoader cl)
                              throws DomainMapException
Wrap DomainMapManager.getDeploymentDesc(domainFileName, cl)

Parameters:
domainFileName - name of the file containing the domain map
cl - Domain ClassLoader
Returns:
the DomainMap containing the map description
Throws:
DomainMapException - When DomainMap can't be created

setParsingWithValidation

public static void setParsingWithValidation(boolean b)
Wrap DomainMapManager.setParsingWithValidation(b)

Parameters:
b - true/false

saveDomain

public static void saveDomain(Domain domain,
                              java.lang.String fileName)
                       throws DomainMapException
Load the domain.xml file.

Parameters:
domain - domain representation.
fileName - the name of the file (domain.xml).
Throws:
DomainMapException