equip.net
Class ProxyDelegate

java.lang.Object
  extended byequip.net.ProxyDelegate

public class ProxyDelegate
extends java.lang.Object

Generic implementation of ServiceProxy, for use by delegation from IDL'd subclasses of ServiceProxy. The main entry point is init(equip.net.ServiceProxy, equip.net.ProxyDelegate.Handler, java.lang.Object), which passes received messages to a callback interface implementing ProxyDelegate.Handler.


Nested Class Summary
static interface ProxyDelegate.Handler
          callback/strategy function for ProxyDelegate
 
Constructor Summary
ProxyDelegate()
          empty constructor - see init(equip.net.ServiceProxy, equip.net.ProxyDelegate.Handler, java.lang.Object)
 
Method Summary
 boolean activate(DeactivateCallback callback, ValueBase closure)
           
 void deactivate()
           
 ValueBase doSimpleRpc(ValueBase request)
           
 ConnectionSap getConnection()
           
 boolean init(ServiceProxy proxy, ProxyDelegate.Handler handler, java.lang.Object closure)
          true = ok; handler!
 void notifyDeactivate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyDelegate

public ProxyDelegate()
empty constructor - see init(equip.net.ServiceProxy, equip.net.ProxyDelegate.Handler, java.lang.Object)

Method Detail

init

public boolean init(ServiceProxy proxy,
                    ProxyDelegate.Handler handler,
                    java.lang.Object closure)
true = ok; handler!=null => create new thread for replies


getConnection

public ConnectionSap getConnection()

activate

public boolean activate(DeactivateCallback callback,
                        ValueBase closure)

deactivate

public void deactivate()

notifyDeactivate

public void notifyDeactivate()

doSimpleRpc

public ValueBase doSimpleRpc(ValueBase request)