org.apache.cocoon.components.repository
Class RepositoryManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by 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
 
Constructor Summary
RepositoryManager()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
           
 Repository getRepository(String hint, CredentialsToken credentials)
          get instance of repository.
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE

public static final String ROLE
The Avalon role name

Constructor Detail

RepositoryManager

public RepositoryManager()
Method Detail

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.