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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationSplitter
public ConfigurationSplitter()
split
public static Configuration split(Configuration merged,
Configuration base)
throws 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:
ConfigurationException
- if unable to split
Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.