summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/entity/proxy/EntityProxyObserver.java
blob: 3ddb99c33e5ce89e2a08d31420a4780b43420858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.c2kernel.entity.proxy;

import com.c2kernel.entity.C2KLocalObject;



public interface EntityProxyObserver<V extends C2KLocalObject>
{
   /**************************************************************************
    * 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(V 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);
    
    public void control(String control, String msg);
}