Package | Description |
---|---|
org.apache.commons.proxy2 | |
org.apache.commons.proxy2.asm | |
org.apache.commons.proxy2.cglib | |
org.apache.commons.proxy2.impl | |
org.apache.commons.proxy2.interceptor | |
org.apache.commons.proxy2.invoker | |
org.apache.commons.proxy2.javassist | |
org.apache.commons.proxy2.jdk | |
org.apache.commons.proxy2.stub |
Contains mechanisms for stubbing behavior on
ProxyFactory -generated proxy objects. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ProxyFactory.createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
<T> T |
ProxyFactory.createInvokerProxy(Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ASMProxyFactory.createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class<?>... proxyClasses) |
Modifier and Type | Method and Description |
---|---|
<T> T |
CglibProxyFactory.createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractProxyFactory.createInvokerProxy(Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
Modifier and Type | Method and Description |
---|---|
static Interceptor |
InterceptorUtils.invoking(Invoker invoker)
Creates an
Interceptor that delegates to the specified Invoker . |
Constructor and Description |
---|
InvokerInterceptor(Invoker invoker) |
Modifier and Type | Class and Description |
---|---|
class |
DelegatingInvoker<T>
Delegates a method invocation to the object provided by an
ObjectProvider . |
class |
DuckTypingInvoker
An invoker which supports "duck typing", meaning
that it finds a matching method on the object returned from the target provider and invokes it.
|
class |
InvocationHandlerAdapter
An adapter class to adapt the JDK's
InvocationHandler interface to Commons Proxy's Invoker interface. |
class |
NullInvoker
An
Invoker implementation which merely returns null for all method invocations. |
Modifier and Type | Method and Description |
---|---|
<T> T |
JavassistProxyFactory.createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy which uses the provided
Invoker to handle all method invocations. |
Modifier and Type | Method and Description |
---|---|
<T> T |
JdkProxyFactory.createInvokerProxy(ClassLoader classLoader,
Invoker invoker,
Class<?>... proxyClasses)
Creates a proxy2 which uses the provided
Invoker to handle all method invocations. |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationInvoker |
Constructor and Description |
---|
StubBuilder(ProxyFactory proxyFactory,
Class<T> type,
Invoker invoker) |
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.