ch.elca.el4j.services.remoting
Class ServerContextInvocationHandler

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

public class ServerContextInvocationHandler
extends Object
implements InvocationHandler, Serializable

This class passes the context additionally with every method call.

Author:
Martin Zeltner (MZE)
See Also:
Serialized Form
File-location:
ServerContextInvocationHandler
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Constructor Summary
ServerContextInvocationHandler(Object service, Class serviceInterface, ImplicitContextPassingRegistry implicitContextPassingRegistry)
          Constructor.
 
Method Summary
 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

ServerContextInvocationHandler

public ServerContextInvocationHandler(Object service,
                                      Class serviceInterface,
                                      ImplicitContextPassingRegistry implicitContextPassingRegistry)
Constructor.

Parameters:
service - Is the real service which does the work.
serviceInterface - Is the interface which the service has implemented.
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


Copyright © 2005-2011 ELCA. All Rights Reserved.