|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jproxy.proxy.TunnelInvocationHandler
Implementation of InvocationHandler used by DynamicProxyStub. The class implements handler for remote interface. All methods of remote interface are delegated to the handler. The class supports packaging requests with DataStack. It also recognizes Callbacks and creates for them proxies stubs. The class is used by client and created by Tunneling server.
Invocator
,
Tunnel
,
Proxy
,
Serialized FormField Summary | |
java.lang.Object |
object
reference to target object to handle direct proxy calls |
Constructor Summary | |
TunnelInvocationHandler(long _sessionId,
java.lang.String[] _interfaceNames,
long _objectId,
java.lang.String _objectClassName,
Tunnel _tunnel)
Constructor for TunnelInvocationHandler |
Method Summary | |
static java.lang.Object |
createTIHDescriptor(TunnelInvocationHandler baseHandler)
|
static IClientInvocationInterceptor |
getClientInvocationInterceptor()
|
java.lang.String[] |
getInterfaceNames()
Tunnelizable implementation |
java.lang.String |
getObjectClassName()
|
long |
getObjectId()
Tunnelizable implementation |
long |
getSessionId()
|
Tunnel |
getTunnel()
Tunnelizable implementation |
java.lang.Object |
invoke(Tunnelizable proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
The implementation of InvocationHandler Processes a method invocation on a proxy instance and returns the result. |
java.lang.Object |
invokeMethod(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
The method delegates calls to Tunnel object. |
static void |
setClientInvocationInterceptor(IClientInvocationInterceptor interceptor)
|
void |
setSessionId(long _sessionId)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public transient java.lang.Object object
Constructor Detail |
public TunnelInvocationHandler(long _sessionId, java.lang.String[] _interfaceNames, long _objectId, java.lang.String _objectClassName, Tunnel _tunnel) throws TunnelException
Method Detail |
public static void setClientInvocationInterceptor(IClientInvocationInterceptor interceptor)
public static IClientInvocationInterceptor getClientInvocationInterceptor()
public static java.lang.Object createTIHDescriptor(TunnelInvocationHandler baseHandler)
public java.lang.Object invoke(Tunnelizable proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
proxy
- the proxy instance that the method was invoked onmethod
- the Method instance corresponding to the interface method invoked on the proxyargs
- an array of objects containing the values of the arguments passed in the method
java.lang.Throwable
public long getSessionId()
public void setSessionId(long _sessionId)
public long getObjectId()
public Tunnel getTunnel()
public java.lang.String[] getInterfaceNames()
public java.lang.String getObjectClassName()
public java.lang.Object invokeMethod(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
proxy
- Proxy stub objectmethod
- reflected method of the proxyargs
- arguments for method call
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |