Package org.eclipse.aether.internal.impl
Class SimpleLocalRepositoryManagerFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory
-
- All Implemented Interfaces:
LocalRepositoryManagerFactory
@Named("simple") public class SimpleLocalRepositoryManagerFactory extends java.lang.Object implements LocalRepositoryManagerFactoryCreates local repository managers for repository type"simple".
-
-
Field Summary
Fields Modifier and Type Field Description private floatpriority
-
Constructor Summary
Constructors Constructor Description SimpleLocalRepositoryManagerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetPriority()The priority of this factory.LocalRepositoryManagernewInstance(RepositorySystemSession session, LocalRepository repository)Tries to create a repository manager for the specified local repository.SimpleLocalRepositoryManagerFactorysetPriority(float priority)Sets the priority of this component.
-
-
-
Method Detail
-
newInstance
public LocalRepositoryManager newInstance(RepositorySystemSession session, LocalRepository repository) throws NoLocalRepositoryManagerException
Description copied from interface:LocalRepositoryManagerFactoryTries to create a repository manager for the specified local repository. The distinguishing property of a local repository is itstype, which may for example denote the used directory structure.- Specified by:
newInstancein interfaceLocalRepositoryManagerFactory- Parameters:
session- The repository system session from which to configure the manager, must not benull.repository- The local repository to create a manager for, must not benull.- 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 float getPriority()
Description copied from interface:LocalRepositoryManagerFactoryThe priority of this factory. Factories with higher priority are preferred over those with lower priority.- Specified by:
getPriorityin interfaceLocalRepositoryManagerFactory- Returns:
- The priority of this factory.
-
setPriority
public SimpleLocalRepositoryManagerFactory setPriority(float priority)
Sets the priority of this component.- Parameters:
priority- The priority.- Returns:
- This component for chaining, never
null.
-
-