org.openrdf.repository.manager.util
Class NotifyingLocalRepositoryManager

java.lang.Object
  extended by org.openrdf.repository.manager.RepositoryManager
      extended by org.openrdf.repository.manager.LocalRepositoryManager
          extended by org.openrdf.repository.manager.util.NotifyingLocalRepositoryManager

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.openrdf.repository.manager.LocalRepositoryManager
REPOSITORIES_DIR
 
Fields inherited from class org.openrdf.repository.manager.RepositoryManager
logger
 
Constructor Summary
NotifyingLocalRepositoryManager(File baseDir)
           
 
Method Summary
 void addRepositoryManagerListener(RepositoryManagerListener listener)
           
 void initialize()
          Initializes the repository manager.
 void refresh()
          Shuts down all initialized user repositories.
 void removeRepositoryManagerListener(RepositoryManagerListener listener)
           
 void shutDown()
          Shuts down all initialized repositories, including the SYSTEM repository.
 
Methods inherited from class org.openrdf.repository.manager.LocalRepositoryManager
cleanUpRepository, createRepository, createSystemRepository, getAllRepositoryInfos, getBaseDir, getLocation, getRepositoryDir, getRepositoryInfo, getSystemRepository, resolvePath
 
Methods inherited from class org.openrdf.repository.manager.RepositoryManager
addRepositoryConfig, getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getInitializedRepositoryIDs, getNewRepositoryID, getRepository, getRepositoryConfig, getRepositoryIDs, hasRepositoryConfig, removeRepositoryConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifyingLocalRepositoryManager

public NotifyingLocalRepositoryManager(File baseDir)
Method Detail

addRepositoryManagerListener

public void addRepositoryManagerListener(RepositoryManagerListener listener)

removeRepositoryManagerListener

public void removeRepositoryManagerListener(RepositoryManagerListener listener)

initialize

public void initialize()
                throws RepositoryException
Description copied from class: RepositoryManager
Initializes the repository manager.

Overrides:
initialize in class RepositoryManager
Throws:
RepositoryException - If the manager failed to initialize the SYSTEM repository.

refresh

public void refresh()
Description copied from class: RepositoryManager
Shuts down all initialized user repositories.

Overrides:
refresh in class RepositoryManager
See Also:
RepositoryManager.shutDown()

shutDown

public void shutDown()
Description copied from class: RepositoryManager
Shuts down all initialized repositories, including the SYSTEM repository.

Overrides:
shutDown in class RepositoryManager
See Also:
RepositoryManager.refresh()


Copyright © 2001-2008 Aduna. All Rights Reserved.