public class StandardProxyFactory extends Object
ProxyFactory based on a JDK.com.thoughtworks.proxy.factory,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static Method |
getInvoker
The getInvoker method.
|
| Constructor and Description |
|---|
StandardProxyFactory() |
| 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.
|
public static final Method getInvoker
public StandardProxyFactory()
public <T> T createProxy(Invoker invoker, Class<?>... types)
ProxyFactoryT - The proxy's type.invoker - the invocation handler.types - the types the proxy must emulate.public boolean canProxy(Class<?> type)
ProxyFactorytype - the type to create a proxy instance for.true if the type is supported.public boolean isProxyClass(Class<?> type)
ProxyFactorytype - the type to examine.true if the given type is a proxy class.public Invoker getInvoker(Object proxy)
InvokerReference to every proxy instance.getInvoker in interface ProxyFactoryproxy - the proxy instance.Invoker instance acting as invocation handler.Copyright © 2005–2018 Codehaus. All rights reserved.