| Package | Description |
|---|---|
| org.proxy4j.core | |
| org.proxy4j.core.build | |
| org.proxy4j.core.cglib | |
| org.proxy4j.core.javassist | |
| org.proxy4j.core.jdk |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseProxyFactory.assertClassVisible(ClassLoader loader,
Class<?> type)
Verifies that the given class is visible from the given class loader.
|
protected void |
BaseProxyFactory.assertInterfaces(Class<?>... types)
Verifies that all the given classes are interfaces.
|
Object |
ProxyFactory.createProxy(Class<?>[] proxyInterfaces,
ProxyHandler<?> handler)
Creates a proxy that implements multiple interfaces where invocations on that proxy are
passed to a single
invoke method on the ProxyHandler. |
<T> T |
ProxyFactory.createProxy(Class<T> proxyClass,
javax.inject.Provider<T> provider)
Creates a "virtual" proxy where method invocations on the proxy are delegated
to the provided instance.
|
<T> T |
ProxyFactory.createProxy(Class<T> proxyClass,
ProxyHandler<T> handler)
Creates a proxy where method invocations on the proxy are passed to a single
invoke method on the ProxyHandler. |
<T> T |
ProxyFactory.createProxy(Class<T> proxyClass,
T target,
Class<? extends Annotation> marker,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Creates a "protection" proxy where method invocations on the proxy are intercepted by the
chain of
MethodInterceptors before (optionally) being invoked on the target. |
<T> T |
BaseProxyFactory.createProxy(Class<T> proxyClass,
T target,
Class<? extends Annotation> marker,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
| Modifier and Type | Method and Description |
|---|---|
T |
InterceptorCreator.create()
Creates the interceptor proxy using information accumulated in
previous build steps.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
CglibProxyFactory.createProxy(Class<?>[] proxyInterfaces,
ProxyHandler<?> handler)
The proxy classes must be interfaces, or an
GenerationException will be thrown. |
<T> T |
CglibProxyFactory.createProxy(Class<T> proxyClass,
javax.inject.Provider<T> provider)
The proxy class in this implementation does not have to be an interface.
|
<T> T |
CglibProxyFactory.createProxy(Class<T> proxyClass,
ProxyHandler<T> handler)
The proxy class in this implementation does not have to be an interface.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
JavassistProxyFactory.createProxy(Class<?>[] proxyInterfaces,
ProxyHandler<?> handler) |
<T> T |
JavassistProxyFactory.createProxy(Class<T> proxyType,
javax.inject.Provider<T> provider) |
<T> T |
JavassistProxyFactory.createProxy(Class<T> proxyType,
ProxyHandler<T> handler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
JdkProxyFactory.createProxy(Class<?>[] proxyInterfaces,
ProxyHandler<?> handler) |
<T> T |
JdkProxyFactory.createProxy(Class<T> proxyInterface,
javax.inject.Provider<T> provider)
The proxy class (first argument) must be an interface, or an
IllegalArgumentException will be thrown. |
<T> T |
JdkProxyFactory.createProxy(Class<T> proxyInterface,
ProxyHandler<T> handler)
The proxy class (first argument) must be an interface, or an
IllegalArgumentException will be thrown. |
Copyright © 2014. All rights reserved.