org.apache.excalibur.configuration.merged
Class ConfigurationSplitter
java.lang.Object
org.apache.excalibur.configuration.merged.ConfigurationSplitter
public class ConfigurationSplitter
- extends Object
The ConfigurationSplitter will take two Configuration objects and calculate the
differences between them.
The resulting Configuration will contain special attribute that can be used by the
ConfigurationMerger to reconstruct the original Configuration
- Author:
- Peter Royal
- See Also:
ConfigurationMerger
Method Summary |
static org.apache.avalon.framework.configuration.Configuration |
split(org.apache.avalon.framework.configuration.Configuration merged,
org.apache.avalon.framework.configuration.Configuration base)
Split a configuration, given a merged configuration and a base configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationSplitter
public ConfigurationSplitter()
split
public static org.apache.avalon.framework.configuration.Configuration split(org.apache.avalon.framework.configuration.Configuration merged,
org.apache.avalon.framework.configuration.Configuration base)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Split a configuration, given a merged configuration and a base configuration.
Functionally equivalent to producing a diff between the merged and base.
- Parameters:
merged
- Configuration that is a combination of the result and
the base parambase
- Configuration that when merged with the result will yield the
merged param
- Returns:
- a Configuration that when merged with the base will yeild the
merged
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if unable to split
Copyright © 1997-2003 Apache Software Foundation. All Rights Reserved.