FileDocCategorySizeDatePackage
ConfigChangeFactory.javaAPI DocGlassfish v2 API5049Fri May 04 22:31:18 BST 2007com.sun.enterprise.config

ConfigChangeFactory

public class ConfigChangeFactory extends Object
This factory has static methods to create Configchange objects from a configbean. It creates specific ConfigChange Interfaces using the implementations from the impl package. This factory is used by the configcontext while generating config change objects during its operation. This factory can also be used by other modules to generate configChange objects that can be serialized and reapplied in a different VM
author
sridatta

Fields Summary
Constructors Summary
Methods Summary
public static ConfigAddcreateConfigAdd(ConfigContext ctx, java.lang.String xpath)
creates a ConfigAdd object based on the parameters. This method should be used only if the configbean for the xpath already exists

return
ConfigAdd object that can be applied to a different context.
param
ctx from where the config bean needs to be taken
param
xpath of the config bean to be used for creating configAdd
throws
ConfigException

      try {
        return new ConfigAddImpl(ctx, xpath);
      } catch(ConfigException ce) {
          LoggerHelper.info("ConfigChangeFactory.createConfigAdd: Error creating config Add", ce);
          throw ce;
      }
  
public static ConfigAddcreateConfigAdd(java.lang.String parentXpath, java.lang.String childXpath, java.lang.String name, ConfigBean cb)
This method is to be used is the config add is to be created for a config bean that is still not added to the tree

param
parentXpath
param
childXpath
param
name
param
cb
return

    return new ConfigAddImpl(parentXpath, childXpath, name, cb);
  
public static ConfigDeletecreateConfigDelete(java.lang.String xpath)
creates a configdelete

      return new ConfigDeleteImpl(xpath);
  
public static ConfigSetcreateConfigSet(java.lang.String parentXpath, java.lang.String name, java.lang.Object cb, java.lang.Object[] cbArray)
creates a ConfigSet

return

       return new ConfigSetImpl(parentXpath, name, cb, cbArray);
  
public static ConfigUpdatecreateConfigUpdate(java.lang.String xpath, java.lang.String attrName, java.lang.String oldValue, java.lang.String newValue)
creates a ConfigUpdate given old and new value

param
xpath
param
attrName
param
oldValue
param
newValue
return

       return new ConfigUpdateImpl(xpath, attrName, oldValue, newValue);