From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- .../c2kernel/entity/proxy/EntityProxyObserver.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 source/com/c2kernel/entity/proxy/EntityProxyObserver.java (limited to 'source/com/c2kernel/entity/proxy/EntityProxyObserver.java') 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); +} -- cgit v1.2.3