org.apache.jackrabbit.rmi.repository
Class JNDIRemoteRepositoryFactory
java.lang.Object
org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
org.apache.jackrabbit.rmi.repository.JNDIRemoteRepositoryFactory
public class JNDIRemoteRepositoryFactory
- extends AbstractRemoteRepositoryFactory
Factory that looks up a remote repository from JNDI.
- Since:
- 1.4
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDIRemoteRepositoryFactory
public JNDIRemoteRepositoryFactory(LocalAdapterFactory factory,
Context context,
String location)
- Creates a factory for looking up a remote repository from JNDI.
- Parameters:
factory
- local adapter factorycontext
- JNDI contextlocation
- JNDI location
getRemoteRepository
protected RemoteRepository getRemoteRepository()
throws RepositoryException
- Looks up a remote repository from JNDI.
- Specified by:
getRemoteRepository
in class AbstractRemoteRepositoryFactory
- Returns:
- remote repository reference
- Throws:
RepositoryException
- if the remote repository is not available
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.