@Component(role=ConfigurationMerger.class) public class DefaultConfigurationMerger extends Object implements ConfigurationMerger
WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.
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-2015 Red Hat, Inc.. All Rights Reserved.