Package org.apache.jackrabbit.jca
Class JCARepositoryManager
- java.lang.Object
-
- org.apache.jackrabbit.jca.JCARepositoryManager
-
public final class JCARepositoryManager extends Object
This class implements the repository manager.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASSPATH_CONFIG_PREFIX
The config file prefix that signifies the file is to be loaded from the classpath.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
autoShutdownRepository(Map<String,String> parameters)
Try to shutdown the repository only ifautoShutdown
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.
-
-
-
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 ifautoShutdown
is true.
-
-