public class WandoraTopicMapManager extends AbstractModule implements TopicMapManager
A TopicMapManager implementation that uses a running Wandora application for the topic map. This will only work if the Wandora application is running in the same virtual machine. Wandora is not a module in the framework, instead it is accessed using the static Wandora.getWandora method.
This module does not use any initialisation parameters beyond those of AbstractModule.
TopicMapManager.TopicMapManagerListener| Modifier and Type | Field and Description |
|---|---|
protected ListenerList<TopicMapManager.TopicMapManagerListener> |
managerListeners |
protected java.util.concurrent.locks.ReadWriteLock |
tmLock |
protected Wandora |
wandora |
autoStart, isInitialized, isRunning, logging, loggingModule, moduleManager| Constructor and Description |
|---|
WandoraTopicMapManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTopicMapManagerListener(TopicMapManager.TopicMapManagerListener listener)
Adds a topic map listener that will be notified when the managed
topic map is replaced with another topic map.
|
protected void |
fireTopicMapChanged(TopicMap old,
TopicMap neu) |
java.util.Collection<Module> |
getDependencies(ModuleManager manager)
Returns all the modules this module depends on.
|
TopicMap |
getTopicMap()
Returns the topic map managed by this topic map manager.
|
boolean |
lockRead()
Locks the topic map for reading.
|
boolean |
lockWrite()
Locks the topic map for writing.
|
void |
removeTopicMapManagerListener(TopicMapManager.TopicMapManagerListener listener)
Removes a topic map listener.
|
void |
start(ModuleManager manager)
Starts the module.
|
void |
stop(ModuleManager manager)
Stops the module.
|
void |
unlockRead()
Releases a previously acquired read lock.
|
void |
unlockWrite()
Releases a previously acquired write lock.
|
init, isInitialized, isRunning, requireLogging, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinit, isInitialized, isRunningprotected final ListenerList<TopicMapManager.TopicMapManagerListener> managerListeners
protected java.util.concurrent.locks.ReadWriteLock tmLock
protected Wandora wandora
public java.util.Collection<Module> getDependencies(ModuleManager manager) throws ModuleException
ModulegetDependencies in interface ModulegetDependencies in class AbstractModulemanager - The module manager handling this module.ModuleExceptionpublic void start(ModuleManager manager) throws ModuleException
Modulestart in interface Modulestart in class AbstractModulemanager - The module manager handling this module.ModuleExceptionpublic void stop(ModuleManager manager)
Modulestop in interface Modulestop in class AbstractModulemanager - The module manager handling this module.public boolean lockRead()
TopicMapManagerlockRead in interface TopicMapManagerpublic void unlockRead()
TopicMapManagerunlockRead in interface TopicMapManagerpublic boolean lockWrite()
TopicMapManagerlockWrite in interface TopicMapManagerpublic void unlockWrite()
TopicMapManagerunlockWrite in interface TopicMapManagerpublic TopicMap getTopicMap()
TopicMapManagergetTopicMap in interface TopicMapManagerpublic void addTopicMapManagerListener(TopicMapManager.TopicMapManagerListener listener)
TopicMapManageraddTopicMapManagerListener in interface TopicMapManagerlistener - The topic map listener.public void removeTopicMapManagerListener(TopicMapManager.TopicMapManagerListener listener)
TopicMapManagerremoveTopicMapManagerListener in interface TopicMapManagerlistener - The listener.Copyright 2004-2015 Wandora Team