Package org.silverpeas.core.jcr.impl.oak
Class OakRepositoryFactory
- java.lang.Object
-
- org.silverpeas.core.jcr.impl.oak.OakRepositoryFactory
-
- All Implemented Interfaces:
javax.jcr.RepositoryFactory
,SilverpeasRepositoryFactory
public class OakRepositoryFactory extends Object implements SilverpeasRepositoryFactory
A factory of a
Repository
implemented by Apache Jackrabbit Oak. The factory checks the required parameters are available to take the control of the construction of theRepository
instance. The repository is created by using the Oak API and from the configuration parameters that were loaded from a properties file in the JCR home directory. The expected parameters are:RepositorySettings.JCR_HOME
: the absolute path of the JCR home directory,RepositorySettings.JCR_CONF
: the absolute path of the configuration file in which are specified the type of repository backend to use with Oak and its configuration parameters.
-
-
Constructor Summary
Constructors Constructor Description OakRepositoryFactory()
-
-
-
Method Detail
-
getRepository
public javax.jcr.Repository getRepository(Map parameters) throws javax.jcr.RepositoryException
- Specified by:
getRepository
in interfacejavax.jcr.RepositoryFactory
- Throws:
javax.jcr.RepositoryException
-
-