@Component(role=GraphConflictResolver.class) public class DefaultGraphConflictResolver extends Object implements GraphConflictResolver
Modifier and Type | Field and Description |
---|---|
protected GraphConflictResolutionPolicy |
policy
artifact, closer to the entry point, is selected
|
ROLE
Constructor and Description |
---|
DefaultGraphConflictResolver() |
Modifier and Type | Method and Description |
---|---|
MetadataGraph |
resolveConflicts(MetadataGraph graph,
ArtifactScopeEnum scope)
Cleanses the supplied graph by leaving only one directed versioned edge\
between any two nodes, if multiple exists.
|
@Requirement(role=GraphConflictResolutionPolicy.class) protected GraphConflictResolutionPolicy policy
public DefaultGraphConflictResolver()
public MetadataGraph resolveConflicts(MetadataGraph graph, ArtifactScopeEnum scope) throws GraphConflictResolutionException
GraphConflictResolver
ArtifactScopeEnum
resolveConflicts
in interface GraphConflictResolver
graph
- the "dirty" graph to be simplified via conflict resolutionscope
- scope for which the graph should be resolvedGraphConflictResolutionException
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.