S
- The enclosing type of the interface that a dynamic proxy like this implementsF
- The function that implements this dynamic proxy@Beta public class DelegatesToInvocationFunction<S,F extends com.google.common.base.Function<Invocation,Object>> extends Object implements InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Injector |
injector |
protected F |
methodInvoker |
protected com.google.common.base.Function<InvocationSuccess,com.google.common.base.Optional<Object>> |
optionalConverter |
protected com.google.common.reflect.TypeToken<S> |
ownerType |
protected SetCaller |
setCaller |
Modifier and Type | Method and Description |
---|---|
protected Object |
handle(Invocation invocation) |
Object |
invoke(Object proxy,
Method invoked,
Object[] argv) |
protected com.google.inject.Key<?> |
methodInvokerFor(Class<?> returnType)
attempts to guess the generic type params for the delegate's invocation function based on the supplied type
|
String |
toString() |
protected final com.google.inject.Injector injector
protected final com.google.common.reflect.TypeToken<S> ownerType
protected final SetCaller setCaller
protected final com.google.common.base.Function<InvocationSuccess,com.google.common.base.Optional<Object>> optionalConverter
protected final F extends com.google.common.base.Function<Invocation,Object> methodInvoker
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
AbstractInvocationHandler.equals(java.lang.Object)
returns true for the InvocationHandler
of
argument
#handleInvocation
.
invoke
in interface InvocationHandler
Throwable
protected Object handle(Invocation invocation)
protected com.google.inject.Key<?> methodInvokerFor(Class<?> returnType)
Copyright © 2009-2013 jclouds. All Rights Reserved.