Class DefaultConflictResolverFactory
- java.lang.Object
-
- org.apache.maven.repository.legacy.resolver.conflict.DefaultConflictResolverFactory
-
- All Implemented Interfaces:
ConflictResolverFactory
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
@Component(role=ConflictResolverFactory.class) public class DefaultConflictResolverFactory extends Object implements ConflictResolverFactory, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
A conflict resolver factory that obtains instances from a plexus container.- Since:
- 3.0
- Author:
- Mark Hobson TODO you don't need the container in here with the active maps (jvz).
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.repository.legacy.resolver.conflict.ConflictResolverFactory
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultConflictResolverFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(org.codehaus.plexus.context.Context context)
ConflictResolver
getConflictResolver(String type)
Gets a conflict resolver of the specified type.
-
-
-
Method Detail
-
getConflictResolver
public ConflictResolver getConflictResolver(String type) throws ConflictResolverNotFoundException
Description copied from interface:ConflictResolverFactory
Gets a conflict resolver of the specified type.- Specified by:
getConflictResolver
in interfaceConflictResolverFactory
- Parameters:
type
- the type of conflict resolver to obtain- Returns:
- the conflict resolver
- Throws:
ConflictResolverNotFoundException
- if the specified type was not found
-
contextualize
public void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
-
-