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(Map<String,String> parameters)
          Try to shutdown the repository only if autoShutdown is true.
 Repository createRepository(Map<String,String> parameters)
          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 Repository createRepository(Map<String,String> parameters)
                            throws RepositoryException
Create repository.

Parameters:
parameters - repository parameters
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(Map<String,String> parameters)
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.