Class NotifyingLocalRepositoryManager
- java.lang.Object
-
- org.eclipse.rdf4j.repository.manager.RepositoryManager
-
- org.eclipse.rdf4j.repository.manager.LocalRepositoryManager
-
- org.eclipse.rdf4j.repository.manager.util.NotifyingLocalRepositoryManager
-
- All Implemented Interfaces:
HttpClientDependent
,RepositoryResolver
public class NotifyingLocalRepositoryManager extends LocalRepositoryManager
NotifyingLocalRepositoryManager extends LocalRepositoryManager with support for registering listeners. In time this class is likely to become redundant as RepositoryManager may be extended with listener support. This functionality can currently not be implemented as a wrapper around any existing RepositoryManager due to the fact that RepositoryManager defines abstract protected methods. A wrapper class cannot implement these methods in a meaningful way by itself and, because of the protected access, cannot invoke it on the wrapped RepositoryManager either.
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.repository.manager.LocalRepositoryManager
REPOSITORIES_DIR
-
Fields inherited from class org.eclipse.rdf4j.repository.manager.RepositoryManager
initializedRepositories, logger, NAMESPACE, PROXIED_ID
-
-
Constructor Summary
Constructors Constructor Description NotifyingLocalRepositoryManager(File baseDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRepositoryManagerListener(RepositoryManagerListener listener)
void
init()
Initializes the repository manager.void
refresh()
Shuts down all initialized user repositories.void
removeRepositoryManagerListener(RepositoryManagerListener listener)
void
shutDown()
Shuts down all initialized repositories.-
Methods inherited from class org.eclipse.rdf4j.repository.manager.LocalRepositoryManager
addRepositoryConfig, createRepository, getAllRepositoryInfos, getBaseDir, getFederatedServiceResolver, getHttpClient, getLocation, getRepositoryConfig, getRepositoryDir, getRepositoryInfo, getSesameClient, removeRepository, resolvePath, setHttpClient
-
Methods inherited from class org.eclipse.rdf4j.repository.manager.RepositoryManager
getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getInitializedRepositoryIDs, getModelFactory, getNewRepositoryID, getRepository, getRepositoryIDs, hasRepositoryConfig, isInitialized, isSafeToRemove, setInitializedRepositories, setModelFactory, updateInitializedRepositories
-
-
-
-
Constructor Detail
-
NotifyingLocalRepositoryManager
public NotifyingLocalRepositoryManager(File baseDir)
-
-
Method Detail
-
addRepositoryManagerListener
public void addRepositoryManagerListener(RepositoryManagerListener listener)
-
removeRepositoryManagerListener
public void removeRepositoryManagerListener(RepositoryManagerListener listener)
-
init
public void init() throws RepositoryException
Description copied from class:RepositoryManager
Initializes the repository manager.- Overrides:
init
in classRepositoryManager
- Throws:
RepositoryException
- If the manager failed to initialize.
-
refresh
public void refresh()
Description copied from class:RepositoryManager
Shuts down all initialized user repositories.- Overrides:
refresh
in classRepositoryManager
- See Also:
RepositoryManager.shutDown()
-
shutDown
public void shutDown()
Description copied from class:RepositoryManager
Shuts down all initialized repositories.- Overrides:
shutDown
in classLocalRepositoryManager
- See Also:
RepositoryManager.refresh()
-
-