public abstract class AbstractRhqFacadeProxy<T extends RhqFacade> extends Object implements InvocationHandler
InvocationHandler to help the script users create proxies to actually call the
correct methods on RHQ. This base implementation provides its inheritors with the facade impl and the concrete
manager they should invoke the methods on and does the "de-simplification" of the arguments (i.e. the opposite of InterfaceSimplifier.simplify(Class).| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRhqFacadeProxy(T facade,
RhqManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
doInvoke(Object proxy,
Method originalMethod,
Object[] args)
This method actually calls the method according to the RhqFacade's implementation.
|
protected RhqManager |
getManager() |
protected T |
getRhqFacade() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected AbstractRhqFacadeProxy(T facade, RhqManager manager)
protected T getRhqFacade()
protected RhqManager getManager()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected abstract Object doInvoke(Object proxy, Method originalMethod, Object[] args) throws Throwable
argTypes
and args are de-simplified (and thus the method can't be supplied just as a simple Method instance).proxy - the proxy the method is executing onoriginalMethod - the original methodargs - the de-simplified argumensThrowable - if invocation throws an errorCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.