org.apache.excalibur.configuration.merged
Class ConfigurationSplitter

java.lang.Object
  extended by 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

Constructor Summary
ConfigurationSplitter()
           
 
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
 

Constructor Detail

ConfigurationSplitter

public ConfigurationSplitter()
Method Detail

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 param
base - 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 © 2002-2009 The Apache Software Foundation. All Rights Reserved.