Class AbstractRemoteRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.rmi.repository.AbstractRemoteRepositoryFactory
-
- Direct Known Subclasses:
JNDIRemoteRepositoryFactory
,RMIRemoteRepositoryFactory
,URLRemoteRepositoryFactory
public abstract class AbstractRemoteRepositoryFactory extends Object
Abstract base class for repository factories that make a remote repository available locally. Subclasses need to implement thegetRemoteRepository()
method to actually retrieve the remote repository reference.- Since:
- 1.4
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRemoteRepositoryFactory(LocalAdapterFactory factory)
Creates a factory for looking up a repository from the given RMI URL.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RemoteRepository
getRemoteRepository()
Returns the remote repository reference.Repository
getRepository()
Returns a local adapter for the remote repository.
-
-
-
Constructor Detail
-
AbstractRemoteRepositoryFactory
protected AbstractRemoteRepositoryFactory(LocalAdapterFactory factory)
Creates a factory for looking up a repository from the given RMI URL.- Parameters:
factory
- local adapter factory
-
-
Method Detail
-
getRepository
public Repository getRepository() throws RepositoryException
Returns a local adapter for the remote repository.- Returns:
- local adapter for the remote repository
- Throws:
RepositoryException
- if the remote repository is not available
-
getRemoteRepository
protected abstract RemoteRepository getRemoteRepository() throws RepositoryException
Returns the remote repository reference.- Returns:
- remote repository reference
- Throws:
RepositoryException
- if the remote repository is not available
-
-