org.apache.maven.repository.legacy.resolver.conflict
Class DefaultConflictResolverFactory

java.lang.Object
  extended by org.apache.maven.repository.legacy.resolver.conflict.DefaultConflictResolverFactory
All Implemented Interfaces:
ConflictResolverFactory, Contextualizable

@Component(role=ConflictResolverFactory.class)
public class DefaultConflictResolverFactory
extends Object
implements ConflictResolverFactory, Contextualizable

A conflict resolver factory that obtains instances from a plexus container.

Since:
3.0
Author:
Mark Hobson

Field Summary
 
Fields inherited from interface org.apache.maven.repository.legacy.resolver.conflict.ConflictResolverFactory
ROLE
 
Constructor Summary
DefaultConflictResolverFactory()
           
 
Method Summary
 void contextualize(Context context)
           
 ConflictResolver getConflictResolver(String type)
          Gets a conflict resolver of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConflictResolverFactory

public DefaultConflictResolverFactory()
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 interface ConflictResolverFactory
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(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.