public interface ProxyFactory
extends java.io.Serializable
Proxy
directly) will allow you to use Java's standard proxy mechanism interchangeably with e.g. CGLIB.| Modifier and Type | Method and Description |
|---|---|
boolean |
canProxy(java.lang.Class<?> type)
Test if the ProxyFactory implementation is capable of creating a proxy instance for the given type.
|
<T> T |
createProxy(Invoker invoker,
java.lang.Class<?>... types)
Create a new proxy instance.
|
Invoker |
getInvoker(java.lang.Object proxy)
Retrieve the invocation handler of the proxy.
|
boolean |
isProxyClass(java.lang.Class<?> type)
Test if the given type is a proxy class.
|
<T> T createProxy(Invoker invoker, java.lang.Class<?>... types)
T - The proxy's type.invoker - the invocation handler.types - the types the proxy must emulate.boolean canProxy(java.lang.Class<?> type)
type - the type to create a proxy instance for.true if the type is supported.boolean isProxyClass(java.lang.Class<?> type)
type - the type to examine.true if the given type is a proxy class.