ch.elca.el4j.services.remoting.protocol.loadbalancing.protocol
Class ClientLoadBalancingInvocationHandler

java.lang.Object
  extended by ch.elca.el4j.services.remoting.protocol.loadbalancing.protocol.ClientLoadBalancingInvocationHandler
All Implemented Interfaces:
InvocationHandler, ApplicationContextAware

public class ClientLoadBalancingInvocationHandler
extends Object
implements InvocationHandler, ApplicationContextAware

Manages the different protocols and connection to different servers. The selection of a particular protocol for a particular invocation is based on the policy defined by an implementation of

Author:
Stefan Pleisch (SPL)
File-location:
ClientLoadBalancingInvocationHandler
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

Constructor Summary
ClientLoadBalancingInvocationHandler(AbstractPolicy policy, RemotingProxyFactoryBean proxyBean, Class serviceInterfaceWithContext)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
          
 void setApplicationContext(ApplicationContext applicationContext)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientLoadBalancingInvocationHandler

public ClientLoadBalancingInvocationHandler(AbstractPolicy policy,
                                            RemotingProxyFactoryBean proxyBean,
                                            Class serviceInterfaceWithContext)
Parameters:
protocols -
policy -
proxyBean -
serviceInterfaceWithContext -
Method Detail

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)

Specified by:
setApplicationContext in interface ApplicationContextAware

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.