@Component(role=ConfigurationMerger.class) public class DefaultConfigurationMerger extends Object implements ConfigurationMerger
Constructor and Description |
---|
DefaultConfigurationMerger() |
Modifier and Type | Method and Description |
---|---|
Configuration |
merge(Configuration dominant,
Configuration recessive)
Merge two configurations, with one with one having precedence in the case of conflict.
|
public Configuration merge(Configuration dominant, Configuration recessive)
ConfigurationMerger
Caller should not depend on contents of dominant configuration after the merge was attempted as the implementation is free to modify it. Recessive configuration is never changed.
merge
in interface ConfigurationMerger
dominant
- the dominant configuration into which the recessive configuration will be merged (may be
null
)recessive
- the recessive configuration from which the configuration will inherited (may not be
null
)null
, may be the same as dominant)Copyright © 2012–2013 Red Hat, Inc.. All rights reserved.