ConfigChangeFactorypublic 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 |
Methods Summary |
---|
public static ConfigAdd | createConfigAdd(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
try {
return new ConfigAddImpl(ctx, xpath);
} catch(ConfigException ce) {
LoggerHelper.info("ConfigChangeFactory.createConfigAdd: Error creating config Add", ce);
throw ce;
}
| public static ConfigAdd | createConfigAdd(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
return new ConfigAddImpl(parentXpath, childXpath, name, cb);
| public static ConfigDelete | createConfigDelete(java.lang.String xpath)creates a configdelete
return new ConfigDeleteImpl(xpath);
| public static ConfigSet | createConfigSet(java.lang.String parentXpath, java.lang.String name, java.lang.Object cb, java.lang.Object[] cbArray)creates a ConfigSet
return new ConfigSetImpl(parentXpath, name, cb, cbArray);
| public static ConfigUpdate | createConfigUpdate(java.lang.String xpath, java.lang.String attrName, java.lang.String oldValue, java.lang.String newValue)creates a ConfigUpdate given old and new value
return new ConfigUpdateImpl(xpath, attrName, oldValue, newValue);
|
|