diff options
Diffstat (limited to 'source/com/c2kernel/entity/proxy/EntityProxyObserver.java')
| -rwxr-xr-x | source/com/c2kernel/entity/proxy/EntityProxyObserver.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/com/c2kernel/entity/proxy/EntityProxyObserver.java b/source/com/c2kernel/entity/proxy/EntityProxyObserver.java new file mode 100755 index 0000000..985143d --- /dev/null +++ b/source/com/c2kernel/entity/proxy/EntityProxyObserver.java @@ -0,0 +1,25 @@ +package com.c2kernel.entity.proxy;
+
+import com.c2kernel.entity.C2KLocalObject;
+
+
+
+public interface EntityProxyObserver
+{
+ /**************************************************************************
+ * Subscribed items are broken apart and fed one by one to these methods.
+ * Replacement after an event is done by feeding the new memberbase with the same id.
+ * ID could be an XPath?
+ **************************************************************************/
+ public void add(C2KLocalObject contents);
+
+ /**************************************************************************
+ * the 'type' parameter should be an indication of the type of object
+ * supplied so that the subscriber can associate the call back with
+ * one of its subscriptions. If we go with an Xpath subscription form,
+ * then the id will probably be sufficient.
+ * Should be comparable (substring whatever) with the parameter given to
+ * the subscribe method of ItemProxy.
+ **************************************************************************/
+ public void remove(String id);
+}
|
