jist.runtime
Class ProxyEntity.ProxyEntityHandler

java.lang.Object
  extended by jist.runtime.ProxyEntity.ProxyEntityHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler
Enclosing class:
ProxyEntity

public static class ProxyEntity.ProxyEntityHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Handles all invocations from the Controller on the proxy entity and passes them on to the target object. This handler is bypassed if the target object is Proxiable (i.e. it can receive calls from the Controller and manage it's own EntityRef object)


Field Summary
private  java.lang.Object target
          Target object of the proxy entity.
 
Constructor Summary
ProxyEntity.ProxyEntityHandler(java.lang.Object target)
          Intialize the proxy entity handler with a given target.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Called whenever a proxy entity method is invoked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

private java.lang.Object target
Target object of the proxy entity.

Constructor Detail

ProxyEntity.ProxyEntityHandler

public ProxyEntity.ProxyEntityHandler(java.lang.Object target)
Intialize the proxy entity handler with a given target.

Parameters:
target - target object of the proxy entity
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
Called whenever a proxy entity method is invoked.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - proxy entity object whose method was invoked
method - method invoked on entity object
args - arguments of the method invocation
Returns:
result of invocation (will always be null)