@Component(role=ConflictResolver.class, hint="nearest") public class NearestConflictResolver extends java.lang.Object implements ConflictResolver
ROLE| Constructor and Description |
|---|
NearestConflictResolver() |
| Modifier and Type | Method and Description |
|---|---|
ResolutionNode |
resolveConflict(ResolutionNode node1,
ResolutionNode node2)
Determines which of the specified versions of an artifact to use when there are conflicting declarations.
|
public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2)
ConflictResolverresolveConflict in interface ConflictResolvernode1 - the first artifact declarationnode2 - the second artifact declarationnode1; node2; or nullif
this conflict cannot be resolved