org.apache.jackrabbit.jca
Class JCARepositoryManager

java.lang.Object
  extended by org.apache.jackrabbit.jca.JCARepositoryManager

public final class JCARepositoryManager
extends Object

This class implements the repository manager.


Field Summary
static String CLASSPATH_CONFIG_PREFIX
          The config file prefix that signifies the file is to be loaded from the classpath.
 
Method Summary
 void autoShutdownRepository(String homeDir, String configFile)
          Try to shutdown the repository only if autoShutdown is true.
 RepositoryImpl createRepository(String homeDir, String configFile)
          Create repository.
static JCARepositoryManager getInstance()
          Return the instance.
 boolean isAutoShutdown()
           
 void setAutoShutdown(boolean autoShutdown)
           
 void shutdown()
          Shutdown all the repositories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSPATH_CONFIG_PREFIX

public static final String CLASSPATH_CONFIG_PREFIX
The config file prefix that signifies the file is to be loaded from the classpath.

See Also:
Constant Field Values
Method Detail

createRepository

public RepositoryImpl createRepository(String homeDir,
                                       String configFile)
                                throws RepositoryException
Create repository.

Parameters:
homeDir - The location of the repository.
configFile - The path to the repository configuration file. If the file is located on the classpath, the path should be prepended with JCARepositoryManager.CLASSPATH_CONFIG_PREFIX.
Returns:
repository instance
Throws:
RepositoryException

shutdown

public void shutdown()
Shutdown all the repositories.


getInstance

public static JCARepositoryManager getInstance()
Return the instance.


isAutoShutdown

public boolean isAutoShutdown()

setAutoShutdown

public void setAutoShutdown(boolean autoShutdown)

autoShutdownRepository

public void autoShutdownRepository(String homeDir,
                                   String configFile)
Try to shutdown the repository only if autoShutdown is true.

Parameters:
homeDir - The location of the repository.
configFile - The path to the repository configuration file.


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