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
-
-
Constructor Summary
Constructors Constructor Description JNDIRemoteRepositoryFactory(LocalAdapterFactory factory, Context context, String location)
Creates a factory for looking up a remote repository from JNDI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RemoteRepository
getRemoteRepository()
Looks up a remote repository from JNDI.-
Methods inherited from class org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
getRepository
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getRemoteRepository
protected RemoteRepository getRemoteRepository() throws RepositoryException
Looks up a remote repository from JNDI.- Specified by:
getRemoteRepository
in classAbstractRemoteRepositoryFactory
- Returns:
- remote repository reference
- Throws:
RepositoryException
- if the remote repository is not available
-
-