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.
|
java.lang.Object |
createProxy(java.lang.Class[] types,
Invoker invoker)
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.
|
java.lang.Object createProxy(java.lang.Class[] types, Invoker invoker)
types
- the types the proxy must emulate.invoker
- the invocation handler.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 examin.true
if the given type is a proxy class.