org.apache.jackrabbit.spi2davex
Class Spi2davexRepositoryServiceFactory

java.lang.Object
  extended by org.apache.jackrabbit.spi2davex.Spi2davexRepositoryServiceFactory
All Implemented Interfaces:
RepositoryServiceFactory

public class Spi2davexRepositoryServiceFactory
extends Object
implements RepositoryServiceFactory

This RepositoryServiceFactory implementation is responsible for creating RepositoryServiceImpl instances.


Field Summary
static String DEFAULT_REPOSITORY_URI
          Default URI for the PARAM_REPOSITORY_URI configuration parameter.
static String PARAM_BATCHREAD_CONFIG
          Optional batch read configuration parameter: If present it's value is expected to be an instance of BatchReadConfig
static String PARAM_ITEMINFO_CACHE_SIZE
          Optional configuration parameter: It's value determines the size of the ItemInfoCache cache.
static String PARAM_REPOSITORY_URI
          Mandatory configuration parameter: It's value is expected to specify the URI of the JCR server implementation.
 
Constructor Summary
Spi2davexRepositoryServiceFactory()
           
 
Method Summary
 RepositoryService createRepositoryService(Map<?,?> parameters)
          Create a new RepositoryService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_REPOSITORY_URI

public static final String PARAM_REPOSITORY_URI
Mandatory configuration parameter: It's value is expected to specify the URI of the JCR server implementation. DEFAULT_REPOSITORY_URI is used as fallback if no parameters or uri has been specified and the uri could not been retrieved from system props either.

See Also:
JcrRemotingServlet, Constant Field Values

DEFAULT_REPOSITORY_URI

public static String DEFAULT_REPOSITORY_URI
Default URI for the PARAM_REPOSITORY_URI configuration parameter.


PARAM_BATCHREAD_CONFIG

public static final String PARAM_BATCHREAD_CONFIG
Optional batch read configuration parameter: If present it's value is expected to be an instance of BatchReadConfig

See Also:
Constant Field Values

PARAM_ITEMINFO_CACHE_SIZE

public static final String PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of the ItemInfoCache cache. Defaults to ItemInfoCacheImpl.DEFAULT_CACHE_SIZE.

See Also:
Constant Field Values
Constructor Detail

Spi2davexRepositoryServiceFactory

public Spi2davexRepositoryServiceFactory()
Method Detail

createRepositoryService

public RepositoryService createRepositoryService(Map<?,?> parameters)
                                          throws RepositoryException
Description copied from interface: RepositoryServiceFactory
Create a new RepositoryService. If the factory does not understand the passed parameters it must return null.

Specified by:
createRepositoryService in interface RepositoryServiceFactory
Parameters:
parameters - implementation specific set of parameters
Returns:
a fresh RepositoryService instance or null.
Throws:
RepositoryException - If there was an error creating the RepositoryService instance


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.