ch.elca.el4j.services.remoting
Class ClientContextInvocationHandler

java.lang.Object
  extended by ch.elca.el4j.services.remoting.ClientContextInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class ClientContextInvocationHandler
extends Object
implements InvocationHandler

This class passes the context additionally with every method call.

Author:
Martin Zeltner (MZE)
File-location:
ClientContextInvocationHandler
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
ClientContextInvocationHandler(Object innerRemoteObject, Class serviceInterfaceWithContext, ImplicitContextPassingRegistry implicitContextPassingRegistry)
          Constructor.
 
Method Summary
protected  Object getInnerRemoteObject()
           
 Object invoke(Object proxy, Method method, Object[] args)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientContextInvocationHandler

public ClientContextInvocationHandler(Object innerRemoteObject,
                                      Class serviceInterfaceWithContext,
                                      ImplicitContextPassingRegistry implicitContextPassingRegistry)
Constructor.

Parameters:
innerRemoteObject - Is the object to which invokations must be delegated.
serviceInterfaceWithContext - Is the enriched service interface.
implicitContextPassingRegistry - Is the implicit context passing registry.
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable

Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getInnerRemoteObject

protected Object getInnerRemoteObject()
Returns:
Returns the inner remote object where method calls are delegated to.


Copyright © 2005-2011 ELCA. All Rights Reserved.