@Named(value="simple") public class SimpleLocalRepositoryManagerFactory extends Object implements LocalRepositoryManagerFactory, Service
"simple"
.Constructor and Description |
---|
SimpleLocalRepositoryManagerFactory() |
Modifier and Type | Method and Description |
---|---|
float |
getPriority()
The priority of this factory.
|
void |
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
LocalRepositoryManager |
newInstance(RepositorySystemSession session,
LocalRepository repository)
Tries to create a repository manager for the specified local repository.
|
SimpleLocalRepositoryManagerFactory |
setLoggerFactory(LoggerFactory loggerFactory) |
SimpleLocalRepositoryManagerFactory |
setPriority(float priority)
Sets the priority of this component.
|
public SimpleLocalRepositoryManagerFactory()
public LocalRepositoryManager newInstance(RepositorySystemSession session, LocalRepository repository) throws NoLocalRepositoryManagerException
LocalRepositoryManagerFactory
type
, which may for example denote the used directory
structure.newInstance
in interface LocalRepositoryManagerFactory
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
.null
.NoLocalRepositoryManagerException
- If the factory cannot create a manager for the specified local
repository.public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public SimpleLocalRepositoryManagerFactory setLoggerFactory(LoggerFactory loggerFactory)
public float getPriority()
LocalRepositoryManagerFactory
getPriority
in interface LocalRepositoryManagerFactory
public SimpleLocalRepositoryManagerFactory setPriority(float priority)
priority
- The priority.null
.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.