org.jclouds.rest.internal
Class DelegatesToInvocationFunction<S,F extends com.google.common.base.Function<Invocation,Object>>
java.lang.Object
org.jclouds.rest.internal.DelegatesToInvocationFunction<S,F>
- Type Parameters:
S - The enclosing type of the interface that a dynamic proxy like this implementsF - The function that implements this dynamic proxy
- All Implemented Interfaces:
- InvocationHandler
@Beta
public final class DelegatesToInvocationFunction<S,F extends com.google.common.base.Function<Invocation,Object>>
- extends Object
- implements InvocationHandler
invoke
public final Object invoke(Object proxy,
Method invoked,
@Nullable
Object[] argv)
throws Throwable
-
proxy.hashCode() delegates to AbstractInvocationHandler.hashCode()
proxy.toString() delegates to AbstractInvocationHandler.toString()
proxy.equals(argument) returns true if:
proxy and argument are of the same type
- and
AbstractInvocationHandler.equals(java.lang.Object) returns true for the InvocationHandler of
argument
- other method calls are dispatched to
#handleInvocation.
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
handle
protected Object handle(Invocation invocation)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2013 jclouds. All Rights Reserved.