|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactory
org.apache.chemistry.opencmis.jcr.JcrServiceFactory
public class JcrServiceFactory
A CmisServiceFactory implementation which returns JcrService instances.
| Field Summary | |
|---|---|
static BigInteger |
DEFAULT_DEPTH_OBJECTS
|
static BigInteger |
DEFAULT_DEPTH_TYPES
|
static BigInteger |
DEFAULT_MAX_ITEMS_OBJECTS
|
static BigInteger |
DEFAULT_MAX_ITEMS_TYPES
|
static String |
MOUNT_PATH_CONFIG
|
static String |
PREFIX_JCR_CONFIG
|
| Constructor Summary | |
|---|---|
JcrServiceFactory()
|
|
| Method Summary | |
|---|---|
protected javax.jcr.Repository |
acquireJcrRepository(Map<String,String> jcrConfig)
Acquire the JCR repository given a configuration. |
protected JcrService |
createJcrService(JcrRepository jcrRepository,
CallContext context)
Create a JcrService from a JcrRepositoryJcrRepository> and
CallContext. |
void |
destroy()
Cleans up the the factory instance. |
CmisService |
getService(CallContext context)
Returns a CmisService object for the given CallContext. |
void |
init(Map<String,String> parameters)
Initializes the factory instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MOUNT_PATH_CONFIG
public static final String PREFIX_JCR_CONFIG
public static final BigInteger DEFAULT_MAX_ITEMS_TYPES
public static final BigInteger DEFAULT_DEPTH_TYPES
public static final BigInteger DEFAULT_MAX_ITEMS_OBJECTS
public static final BigInteger DEFAULT_DEPTH_OBJECTS
| Constructor Detail |
|---|
public JcrServiceFactory()
| Method Detail |
|---|
public void init(Map<String,String> parameters)
CmisServiceFactory
init in interface CmisServiceFactoryinit in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorypublic void destroy()
CmisServiceFactory
destroy in interface CmisServiceFactorydestroy in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactorypublic CmisService getService(CallContext context)
CmisServiceFactoryCmisService object for the given CallContext.
When the CmisService object is not longer needed
CmisService.close() will be called.
getService in interface CmisServiceFactorygetService in class org.apache.chemistry.opencmis.commons.impl.server.AbstractServiceFactoryprotected javax.jcr.Repository acquireJcrRepository(Map<String,String> jcrConfig)
ServiceRegistry.lookupProviders(Class) for
locating RepositoryFactory instances. The first instance
which can handle the jcrConfig parameters is used to
acquire the repository.
jcrConfig - configuration determining the JCR repository to be returned
javax.jcr.RepositoryException
protected JcrService createJcrService(JcrRepository jcrRepository,
CallContext context)
JcrService from a JcrRepositoryJcrRepository> and
CallContext.
jcrRepository - context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||