Package org.apache.jackrabbit.oak.jcr
Class OakRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.OakRepositoryFactory
-
- All Implemented Interfaces:
RepositoryFactory
public class OakRepositoryFactory extends java.lang.Object implements RepositoryFactory
-
-
Constructor Summary
Constructors Constructor Description OakRepositoryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositorygetRepository(java.util.Map parameters)Attempts to establish a connection to a repository using the givenparameters.
-
-
-
Method Detail
-
getRepository
public Repository getRepository(java.util.Map parameters) throws RepositoryException
Description copied from interface:RepositoryFactoryAttempts to establish a connection to a repository using the givenparameters.Parameters are passed in a
MapofStringkey/value pairs. The keys are not specified by JCR and are implementation specific. However, vendors should use keys that are namespace qualified in the Java package style to distinguish their key names. For example an address parameter might becom.vendor.address.The implementation must return
nullif it does not understand the given parameters. The implementation may also returnnullif a default repository instance is requested (indicated bynullparameters) and this factory is not able to identify a default repository.An implementation of this method must be thread-safe.
- Specified by:
getRepositoryin interfaceRepositoryFactory- Parameters:
parameters- map of string key/value pairs as repository arguments ornullif none are provided and a client wishes to connect to a default repository.- Returns:
- a repository instance or
nullif this implementation does not understand the passedparameters. - Throws:
RepositoryException- if if no suitable repository is found or another error occurs.
-
-