org.sonatype.aether.impl.internal
Class EnhancedLocalRepositoryManagerFactory

java.lang.Object
  extended by org.sonatype.aether.impl.internal.EnhancedLocalRepositoryManagerFactory
All Implemented Interfaces:
LocalRepositoryManagerFactory

@Component(role=LocalRepositoryManagerFactory.class,
           hint="enhanced")
public class EnhancedLocalRepositoryManagerFactory
extends java.lang.Object
implements LocalRepositoryManagerFactory

Creates EnhancedLocalRepositoryManagers for repository types "default" or "" (automatic).

Author:
Benjamin Hanzelmann

Constructor Summary
EnhancedLocalRepositoryManagerFactory()
           
 
Method Summary
 int getPriority()
          The priority of this factory.
 LocalRepositoryManager newInstance(LocalRepository repository)
          Tries to create a repository manager for the specified local repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedLocalRepositoryManagerFactory

public EnhancedLocalRepositoryManagerFactory()
Method Detail

newInstance

public LocalRepositoryManager newInstance(LocalRepository repository)
                                   throws NoLocalRepositoryManagerException
Description copied from interface: LocalRepositoryManagerFactory
Tries to create a repository manager for the specified local repository. The distinguishing property of a local repository is its type, which may for example denote the used directory structure.

Specified by:
newInstance in interface LocalRepositoryManagerFactory
Parameters:
repository - The local repository to create a manager for, must not be null.
Returns:
The manager for the given repository, never null.
Throws:
NoLocalRepositoryManagerException - If the factory cannot create a manager for the specified local repository.

getPriority

public int getPriority()
Description copied from interface: LocalRepositoryManagerFactory
The priority of this factory. Factories with higher priority are preferred over those with lower priority.

Specified by:
getPriority in interface LocalRepositoryManagerFactory
Returns:
The priority of this factory.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.