| Package | Description |
|---|---|
| org.proxy4j.core | |
| org.proxy4j.core.cglib | |
| org.proxy4j.core.javassist | |
| org.proxy4j.core.jdk |
| Modifier and Type | Method and Description |
|---|---|
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,
ProxyHandler<T> handler)
Creates a proxy where method invocations on the proxy are passed to a single
invoke method on the ProxyHandler. |
| 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,
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,
ProxyHandler<T> handler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
JdkProxyFactory.createProxy(Class<?>[] proxyInterfaces,
ProxyHandler<?> handler) |
<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.