org.apache.cocoon.components.repository
Class RepositoryManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.repository.RepositoryManager
- All Implemented Interfaces:
- Disposable, Component, Configurable, LogEnabled, Serviceable, ThreadSafe
public class RepositoryManager
- extends AbstractLogEnabled
- implements Serviceable, Disposable, Configurable, Component, ThreadSafe
A factory component to create instances of repositories.
Field Summary |
static String |
ROLE
The Avalon role name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE
public static final String ROLE
- The Avalon role name
RepositoryManager
public RepositoryManager()
service
public void service(ServiceManager manager)
throws ServiceException
- Specified by:
service
in interface Serviceable
- Throws:
ServiceException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
getRepository
public Repository getRepository(String hint,
CredentialsToken credentials)
throws ProcessingException
- get instance of repository.
- Parameters:
hint
- identifies the repository implementation to load.credentials
- the user credentials the repository instance is initialized with.
- Returns:
- the repository instance.
- Throws:
ProcessingException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.