org.openrdf.repository.manager
Class RepositoryProvider

java.lang.Object
  extended by org.openrdf.repository.manager.RepositoryProvider

public class RepositoryProvider
extends Object

A static access point to manage RepositoryManagers that are automatically shutdown when the JVM is closed.

Author:
James Leigh

Constructor Summary
RepositoryProvider()
           
 
Method Summary
static RepositoryConnection getConnection(String url)
          Created a new RepositoryConnection, that must be closed by the caller.
static Repository getRepository(String url)
          Created a Repository, if not already created, that will be shutdown when the JVM exits cleanly.
static RepositoryManager getRepositoryManager(String url)
          Creates a RepositoryManager, if not already created, that will be shutdown when the JVM exits cleanly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryProvider

public RepositoryProvider()
Method Detail

getRepositoryManager

public static RepositoryManager getRepositoryManager(String url)
                                              throws RepositoryConfigException,
                                                     RepositoryException
Creates a RepositoryManager, if not already created, that will be shutdown when the JVM exits cleanly. The parameter must be a URL of the form http://host:port/path or file:///path.

Throws:
RepositoryConfigException
RepositoryException

getRepository

public static Repository getRepository(String url)
                                throws RepositoryException,
                                       RepositoryConfigException
Created a Repository, if not already created, that will be shutdown when the JVM exits cleanly. The parameter must be a URL of the form http://host:port/path/repositories/id or file:///path/repositories/id.

Throws:
RepositoryException
RepositoryConfigException

getConnection

public static RepositoryConnection getConnection(String url)
                                          throws RepositoryException,
                                                 RepositoryConfigException
Created a new RepositoryConnection, that must be closed by the caller. The parameter must be a URL of the form http://host:port/path/repositories/id or file:///path/repositories/id.

Throws:
RepositoryException
RepositoryConfigException


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