|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.registry.NodeSubscriberAdapter
An adapter class that implements NodeCreationSubscriber
,
NodeDeletionSubscriber
, and NodeSubscriber
.
Nested Class Summary |
Nested classes inherited from class ti.chimera.registry.NodeSubscriber |
NodeSubscriber.ScriptFunctionNodeSubscriber |
Nested classes inherited from class ti.chimera.registry.NodeCreationSubscriber |
NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber |
Nested classes inherited from class ti.chimera.registry.NodeDeletionSubscriber |
NodeDeletionSubscriber.ScriptFunctionNodeDeletionSubscriber |
Constructor Summary | |
NodeSubscriberAdapter(Registry registry)
Class Constructor |
Method Summary | |
void |
nodeCreated(Node node)
Called when the node is created (ie. |
void |
nodeDeleted(Node node)
Called when the node is deleted (ie. |
void |
publish(Node node,
java.lang.Object value)
Called to publish the new node value to the subscriber. |
void |
subscribe(java.lang.String path,
NodeContract contract)
Subscribe to creation/value/deletion |
void |
unsubscribe()
Unsubscribe from creation/value/deletion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeSubscriberAdapter(Registry registry)
Method Detail |
public void publish(Node node, java.lang.Object value)
publish
in interface NodeSubscriber
node
- the node doing the publishingvalue
- the node's new valuepublic void nodeCreated(Node node)
nodeCreated
in interface NodeCreationSubscriber
node
- the node createdpublic void nodeDeleted(Node node)
nodeDeleted
in interface NodeDeletionSubscriber
node
- the node deletedpublic void subscribe(java.lang.String path, NodeContract contract)
public void unsubscribe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |