Package org.eclipse.aether.internal.impl
Class SimpleLocalRepositoryManagerFactory
java.lang.Object
org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory
- All Implemented Interfaces:
- LocalRepositoryManagerFactory
@Singleton
@Named("simple")
public class SimpleLocalRepositoryManagerFactory
extends Object
implements LocalRepositoryManagerFactory
Creates local repository managers for repository type 
"simple".- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionNo-arg constructor, as "simple" local repository is meant mainly for use in tests.SimpleLocalRepositoryManagerFactory(LocalPathComposer localPathComposer) 
- 
Method SummaryModifier and TypeMethodDescriptionfloatThe priority of this factory.newInstance(RepositorySystemSession session, LocalRepository repository) Tries to create a repository manager for the specified local repository.setPriority(float priority) Sets the priority of this component.
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
SimpleLocalRepositoryManagerFactorypublic SimpleLocalRepositoryManagerFactory()No-arg constructor, as "simple" local repository is meant mainly for use in tests.
- 
SimpleLocalRepositoryManagerFactory
 
- 
- 
Method Details- 
newInstancepublic 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 interface- LocalRepositoryManagerFactory
- Parameters:
- session- The repository system session from which to configure the manager, must not be- null.
- 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.
 
- 
getPriorityDescription copied from interface:LocalRepositoryManagerFactoryThe priority of this factory. Factories with higher priority are preferred over those with lower priority.- Specified by:
- getPriorityin interface- LocalRepositoryManagerFactory
- Returns:
- The priority of this factory.
 
- 
setPrioritySets the priority of this component.- Parameters:
- priority- The priority.
- Returns:
- This component for chaining, never null.
 
 
-