org.rhq.enterprise.client
Class LocalClientProxy

java.lang.Object
  extended by org.rhq.bindings.client.AbstractRhqFacadeProxy<LocalClient>
      extended by org.rhq.enterprise.client.LocalClientProxy
All Implemented Interfaces:
InvocationHandler

public class LocalClientProxy
extends AbstractRhqFacadeProxy<LocalClient>

This is a proxy interface that simply calls given (de-simplified) method on a provided object. The use-case here is to invoke a method from a remote interface on the local SLSB.

Author:
Lukas Krejci

Constructor Summary
LocalClientProxy(Object localSLSB, LocalClient client, RhqManagers manager)
           
 
Method Summary
protected  Object doInvoke(Object proxy, Method originalMethod, Class<?>[] argTypes, Object[] args)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.rhq.bindings.client.AbstractRhqFacadeProxy
getManager, getRhqFacade
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalClientProxy

public LocalClientProxy(Object localSLSB,
                        LocalClient client,
                        RhqManagers manager)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Overrides:
invoke in class AbstractRhqFacadeProxy<LocalClient>
Throws:
Throwable

doInvoke

protected Object doInvoke(Object proxy,
                          Method originalMethod,
                          Class<?>[] argTypes,
                          Object[] args)
                   throws Throwable
Specified by:
doInvoke in class AbstractRhqFacadeProxy<LocalClient>
Throws:
Throwable


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.