public abstract class AbstractSubjectIdentityCache extends Object implements EventListenerIF, Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractSubjectIdentityCache.EventHandler |
Modifier and Type | Field and Description |
---|---|
protected Map<String,AbstractSubjectIdentityCache.EventHandler> |
handlers |
Constructor and Description |
---|
AbstractSubjectIdentityCache(Map<String,AbstractSubjectIdentityCache.EventHandler> handlers) |
Modifier and Type | Method and Description |
---|---|
protected abstract TMObjectIF |
_getObjectByItemIdentifier(LocatorIF source_locator) |
protected abstract TopicIF |
_getTopicBySubjectIdentifier(LocatorIF subject_indicator) |
protected abstract TopicIF |
_getTopicBySubjectLocator(LocatorIF subject) |
abstract TMObjectIF |
getObjectById(String object_id) |
abstract TMObjectIF |
getObjectByItemIdentifier(LocatorIF locator) |
abstract TopicIF |
getTopicBySubjectIdentifier(LocatorIF locator) |
abstract TopicIF |
getTopicBySubjectLocator(LocatorIF locator) |
void |
processEvent(Object object,
String event,
Object new_value,
Object old_value)
INTERNAL: A method that receives notification when an event has been triggered.
|
void |
registerListeners(EventManagerIF emanager,
EventManagerIF otree)
INTERNAL: Registers the subject identity cache listeners with the default
event manager and the object tree event managers.
|
protected void |
registerObject(TMObjectIF object)
INTERNAL: Register the object with the identity map.
|
protected abstract void |
registerSourceLocator(LocatorIF source_locator,
TMObjectIF object) |
protected abstract void |
registerSubject(LocatorIF subject,
TopicIF object) |
protected abstract void |
registerSubjectIndicator(LocatorIF subject_indicator,
TopicIF object) |
protected void |
unregisterObject(TMObjectIF object)
INTERNAL: Unregister the object with the identity map.
|
protected abstract void |
unregisterSourceLocator(LocatorIF source_locator) |
protected abstract void |
unregisterSubject(LocatorIF subject) |
protected abstract void |
unregisterSubjectIndicator(LocatorIF subject_indicator) |
protected Map<String,AbstractSubjectIdentityCache.EventHandler> handlers
public AbstractSubjectIdentityCache(Map<String,AbstractSubjectIdentityCache.EventHandler> handlers)
public void registerListeners(EventManagerIF emanager, EventManagerIF otree)
emanager
- The default event manager.otree
- The object tree manager.public abstract TMObjectIF getObjectById(String object_id)
public abstract TMObjectIF getObjectByItemIdentifier(LocatorIF locator)
protected void registerObject(TMObjectIF object)
protected void unregisterObject(TMObjectIF object)
protected abstract TMObjectIF _getObjectByItemIdentifier(LocatorIF source_locator)
protected abstract void registerSourceLocator(LocatorIF source_locator, TMObjectIF object)
protected abstract void unregisterSourceLocator(LocatorIF source_locator)
protected abstract TopicIF _getTopicBySubjectIdentifier(LocatorIF subject_indicator)
protected abstract void registerSubjectIndicator(LocatorIF subject_indicator, TopicIF object)
protected abstract void unregisterSubjectIndicator(LocatorIF subject_indicator)
protected abstract void unregisterSubject(LocatorIF subject)
public void processEvent(Object object, String event, Object new_value, Object old_value)
EventListenerIF
processEvent
in interface EventListenerIF