public interface ProxyFactory extends 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(Class<?> type)
Test if the ProxyFactory implementation is capable of creating a proxy instance for the given type.
|
<T> T |
createProxy(Invoker invoker,
Class<?>... types)
Create a new proxy instance.
|
Invoker |
getInvoker(Object proxy)
Retrieve the invocation handler of the proxy.
|
boolean |
isProxyClass(Class<?> type)
Test if the given type is a proxy class.
|
<T> T createProxy(Invoker invoker, Class<?>... types)
T - The proxy's type.invoker - the invocation handler.types - the types the proxy must emulate.boolean canProxy(Class<?> type)
type - the type to create a proxy instance for.true if the type is supported.boolean isProxyClass(Class<?> type)
type - the type to examine.true if the given type is a proxy class.Invoker getInvoker(Object proxy)
proxy - the proxy instance.Invoker instance acting as invocation handler.Copyright © 2005–2018 Codehaus. All rights reserved.