public class StandardProxyFactory extends AbstractProxyFactory
ProxyFactory based on a JDK.com.thoughtworks.proxy.factory,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
StandardProxyFactory.StandardInvocationHandlerAdapter
The native InvocationHandler implementation.
|
AbstractProxyFactory.CoincidentalInvocationHandlerAdapter| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
getInvoker| Constructor and Description |
|---|
StandardProxyFactory() |
| 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.
|
boolean |
isProxyClass(java.lang.Class<?> type)
Test if the given type is a proxy class.
|
getInvokerprivate static final long serialVersionUID
public <T> T createProxy(Invoker invoker, java.lang.Class<?>... types)
ProxyFactoryT - The proxy's type.invoker - the invocation handler.types - the types the proxy must emulate.public boolean canProxy(java.lang.Class<?> type)
ProxyFactorytype - the type to create a proxy instance for.true if the type is supported.public boolean isProxyClass(java.lang.Class<?> type)
ProxyFactorytype - the type to examine.true if the given type is a proxy class.