public class DefaultMergeStrategy extends java.lang.Object implements MergeStrategy
The default merge strategy performs the merge according to the following rules:
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
APPENDERS |
private static java.lang.String |
FILTERS |
private static java.lang.String |
LOGGERS |
private static java.lang.String |
NAME |
private static java.lang.String |
PROPERTIES |
private static java.lang.String |
REF |
private static java.lang.String |
SCRIPTS |
private static java.lang.String |
STATUS |
Constructor and Description |
---|
DefaultMergeStrategy() |
Modifier and Type | Method and Description |
---|---|
private Node |
getLoggerNode(Node parentNode,
java.lang.String name) |
private boolean |
isFilterNode(Node node) |
private boolean |
isSameName(Node node1,
Node node2) |
private boolean |
isSameReference(Node node1,
Node node2) |
void |
mergConfigurations(Node target,
Node source,
PluginManager pluginManager)
Merge the source Configuration into the target Configuration.
|
void |
mergeRootProperties(Node rootNode,
AbstractConfiguration configuration)
Merge the root properties.
|
private void |
updateFilterNode(Node target,
Node targetChildNode,
Node sourceChildNode,
PluginManager pluginManager) |
private static final java.lang.String APPENDERS
private static final java.lang.String PROPERTIES
private static final java.lang.String LOGGERS
private static final java.lang.String SCRIPTS
private static final java.lang.String FILTERS
private static final java.lang.String STATUS
private static final java.lang.String NAME
private static final java.lang.String REF
public void mergeRootProperties(Node rootNode, AbstractConfiguration configuration)
mergeRootProperties
in interface MergeStrategy
rootNode
- The composite root node.configuration
- The configuration to merge.public void mergConfigurations(Node target, Node source, PluginManager pluginManager)
mergConfigurations
in interface MergeStrategy
target
- The target node to merge into.source
- The source node.pluginManager
- The PluginManager.private void updateFilterNode(Node target, Node targetChildNode, Node sourceChildNode, PluginManager pluginManager)
private boolean isFilterNode(Node node)