org.apache.jackrabbit.client
Class RepositoryFactoryImpl

java.lang.Object
  extended by org.apache.jackrabbit.client.RepositoryFactoryImpl
All Implemented Interfaces:
RepositoryFactory

public class RepositoryFactoryImpl
extends Object
implements RepositoryFactory

This RepositoryFactory implementations is capable of creating any repository which is covered by the Apache Jackrabbit project. It does so by delegating back to secondary RepositoryFactory implementations. The parameters passed to the getRepository(Map) method determine which secondare RepositoryFactory this factory delegates to.


Field Summary
static String PARAM_REPOSITORY_CONFIG
          When this key parameter is present, this factory delegates to Jcr2spiRepositoryFactory
static String PARAM_REPOSITORY_SERVICE_FACTORY
          When this key parameter is present, this factory delegates to Jcr2spiRepositoryFactory
 
Constructor Summary
RepositoryFactoryImpl()
           
 
Method Summary
 Repository getRepository(Map parameters)
          Creates a JCR repository from the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_REPOSITORY_SERVICE_FACTORY

public static final String PARAM_REPOSITORY_SERVICE_FACTORY
When this key parameter is present, this factory delegates to Jcr2spiRepositoryFactory

See Also:
Constant Field Values

PARAM_REPOSITORY_CONFIG

public static final String PARAM_REPOSITORY_CONFIG
When this key parameter is present, this factory delegates to Jcr2spiRepositoryFactory

See Also:
Constant Field Values
Constructor Detail

RepositoryFactoryImpl

public RepositoryFactoryImpl()
Method Detail

getRepository

public Repository getRepository(Map parameters)
                         throws RepositoryException
Creates a JCR repository from the given parameters. If either PARAM_REPOSITORY_SERVICE_FACTORY or PARAM_REPOSITORY_CONFIG is present, this factory delegates to Jcr2spiRepositoryFactory. Otherwise it delegates to RepositoryFactoryImpl.

Specified by:
getRepository in interface RepositoryFactory
Throws:
RepositoryException
See Also:
RepositoryFactory.getRepository(java.util.Map)


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