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.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.createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
<T> T |
ProxyFactory.createInterceptorProxy(Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ASMProxyFactory.createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class<?>... proxyClasses) |
Modifier and Type | Method and Description |
---|---|
<T> T |
CglibProxyFactory.createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractProxyFactory.createInterceptorProxy(Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
Modifier and Type | Class and Description |
---|---|
class |
InvokerInterceptor
Adapts an
Invoker to the Interceptor interface. |
class |
ObjectProviderInterceptor
A
ObjectProviderInterceptor merely returns the value returned from
ObjectProvider.getObject() . |
class |
SwitchInterceptor
|
class |
ThrowingInterceptor |
Modifier and Type | Method and Description |
---|---|
static Interceptor |
InterceptorUtils.constant(Object value)
Creates an
Interceptor which always returns a constant value (for all methods). |
static Interceptor |
InterceptorUtils.invoking(Invoker invoker)
Creates an
Interceptor that delegates to the specified Invoker . |
static Interceptor |
InterceptorUtils.provider(ObjectProvider<?> provider)
Creates an
Interceptor which returns the resulting object from an object provider (for all methods). |
static Interceptor |
InterceptorUtils.throwing(Exception e)
Creates an
Interceptor which throws a specific exception (for all methods). |
static Interceptor |
InterceptorUtils.throwing(ObjectProvider<? extends Exception> provider)
Creates an
Interceptor which throws the exception provided by an object provider (for all methods). |
Modifier and Type | Method and Description |
---|---|
SwitchInterceptor |
SwitchInterceptor.CaseBuilder.then(Interceptor interceptor) |
Modifier and Type | Method and Description |
---|---|
<T> T |
JavassistProxyFactory.createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy which passes through a
interceptor before eventually reaching the
target object. |
Modifier and Type | Method and Description |
---|---|
<T> T |
JdkProxyFactory.createInterceptorProxy(ClassLoader classLoader,
Object target,
Interceptor interceptor,
Class<?>... proxyClasses)
Creates a proxy2 which passes through a
interceptor before eventually reaching the
target object. |
Modifier and Type | Method and Description |
---|---|
Interceptor |
StubInterceptorBuilder.build() |
Modifier and Type | Method and Description |
---|---|
S |
BaseTrainer.BaseWhen.then(Interceptor interceptor) |
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.