org.openrdf.repository.object.config
Class ObjectRepositoryFactory

java.lang.Object
  extended by org.openrdf.repository.contextaware.config.ContextAwareFactory
      extended by org.openrdf.repository.object.config.ObjectRepositoryFactory
All Implemented Interfaces:
RepositoryFactory

public class ObjectRepositoryFactory
extends ContextAwareFactory

Creates ObjectRepository from any Repository.

Author:
James Leigh

Field Summary
static String REPOSITORY_TYPE
          The type of repositories that are created by this factory.
 
Constructor Summary
ObjectRepositoryFactory()
           
 
Method Summary
protected  LiteralManager createLiteralManager(ValueFactory uf, ValueFactory lf)
           
protected  ObjectRepository createObjectRepository(RoleMapper mapper, LiteralManager literals, ClassLoader cl)
           
 ObjectRepository createRepository(ObjectRepositoryConfig config, Repository delegate)
          Create an ObjectRepository from a previously initialised delegate.
 ObjectRepository createRepository(Repository delegate)
          Create an ObjectRepository from a previously initialised delegate.
protected  RoleMapper createRoleMapper(ValueFactory vf)
           
 ObjectRepositoryConfig getConfig()
           
 ObjectRepository getRepository(RepositoryImplConfig configuration)
          Create an uninitialised ObjectRepository without a delegate.
 String getRepositoryType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_TYPE

public static final String REPOSITORY_TYPE
The type of repositories that are created by this factory.

See Also:
RepositoryFactory.getRepositoryType(), Constant Field Values
Constructor Detail

ObjectRepositoryFactory

public ObjectRepositoryFactory()
Method Detail

getRepositoryType

public String getRepositoryType()
Specified by:
getRepositoryType in interface RepositoryFactory
Overrides:
getRepositoryType in class ContextAwareFactory

getConfig

public ObjectRepositoryConfig getConfig()
Specified by:
getConfig in interface RepositoryFactory
Overrides:
getConfig in class ContextAwareFactory

createRepository

public ObjectRepository createRepository(ObjectRepositoryConfig config,
                                         Repository delegate)
                                  throws RepositoryConfigException,
                                         RepositoryException
Create an ObjectRepository from a previously initialised delegate.

Throws:
RepositoryConfigException
RepositoryException

createRepository

public ObjectRepository createRepository(Repository delegate)
                                  throws RepositoryConfigException,
                                         RepositoryException
Create an ObjectRepository from a previously initialised delegate.

Throws:
RepositoryConfigException
RepositoryException

getRepository

public ObjectRepository getRepository(RepositoryImplConfig configuration)
                               throws RepositoryConfigException
Create an uninitialised ObjectRepository without a delegate.

Specified by:
getRepository in interface RepositoryFactory
Overrides:
getRepository in class ContextAwareFactory
Throws:
RepositoryConfigException

createLiteralManager

protected LiteralManager createLiteralManager(ValueFactory uf,
                                              ValueFactory lf)

createRoleMapper

protected RoleMapper createRoleMapper(ValueFactory vf)
                               throws ObjectStoreConfigException
Throws:
ObjectStoreConfigException

createObjectRepository

protected ObjectRepository createObjectRepository(RoleMapper mapper,
                                                  LiteralManager literals,
                                                  ClassLoader cl)


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.