|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.jndi.RegistryHelper
JNDI helper functionality. This class contains static utility methods for binding and unbinding Jackarbbit repositories to and from a JNDI context.
Method Summary | |
static void |
registerRepository(Context ctx,
String name,
String configFilePath,
String repHomeDir,
boolean overwrite)
Binds a configured repository to the given JNDI context. |
static void |
unregisterRepository(Context ctx,
String name)
This method shutdowns a BindableRepository
instance using the given configuration information, and unbinds
it from the given JNDI context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void registerRepository(Context ctx, String name, String configFilePath, String repHomeDir, boolean overwrite) throws NamingException, RepositoryException
BindableRepository
instance using the given configuration information, and binds
it to the given JNDI context.
ctx
- context where the repository should be registered (i.e. bound)name
- the name to register the repository withconfigFilePath
- path to the configuration file of the repositoryrepHomeDir
- repository home directoryoverwrite
- if true
, any existing binding with the given
name will be overwritten; otherwise a NamingException
will
be thrown if the name is already bound
RepositoryException
- if the repository cannot be created
NamingException
- if the repository cannot be registered in JNDIpublic static void unregisterRepository(Context ctx, String name) throws NamingException
BindableRepository
instance using the given configuration information, and unbinds
it from the given JNDI context.
ctx
- context where the repository should be unregistered (i.e. unbound)name
- the name of the repository to unregister
NamingException
- on JNDI errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |