org.jboss.dna.connector.federation.merge.strategy
Class SimpleMergeStrategy
java.lang.Object
org.jboss.dna.connector.federation.merge.strategy.SimpleMergeStrategy
- All Implemented Interfaces:
- MergeStrategy
@ThreadSafe
public class SimpleMergeStrategy
- extends Object
- implements MergeStrategy
This merge strategy simply merges all of the contributions' properties and combines the children according to the order of the
contributions. No children are merged, and all properties are used (except if they are deemed to be duplicates of the property
in other contributions).
- Author:
- Randall Hauch
SimpleMergeStrategy
public SimpleMergeStrategy()
isRemoveDuplicateProperties
public boolean isRemoveDuplicateProperties()
- Returns:
- removeDuplicateProperties
setRemoveDuplicateProperties
public void setRemoveDuplicateProperties(boolean removeDuplicateProperties)
- Parameters:
removeDuplicateProperties
- Sets removeDuplicateProperties to the specified value.
merge
public void merge(FederatedNode federatedNode,
List<Contribution> contributions,
ExecutionContext context)
- Merge the contributions into a single
- Specified by:
merge
in interface MergeStrategy
- Parameters:
federatedNode
- the federated node into which the contributions are to be merged; never nullcontributions
- the contributions to the node; never null, never empty, and never containing nullscontext
- the context in which this operation is to be performed; never null- See Also:
MergeStrategy.merge(org.jboss.dna.connector.federation.merge.FederatedNode,
java.util.List, org.jboss.dna.graph.ExecutionContext)
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.