class ConfigurationMerger
extends java.lang.Object
Constructor and Description |
---|
ConfigurationMerger() |
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)
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.
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–2017 Red Hat, Inc.. All rights reserved.