|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.proxy.factory.StandardProxyFactory
public class StandardProxyFactory
A ProxyFactory based on a JDK.
com.thoughtworks.proxy.factory,
Serialized Form| Field Summary | |
|---|---|
static Method |
getInvoker
The getInvoker method. |
| Constructor Summary | |
|---|---|
StandardProxyFactory()
|
|
| Method Summary | ||
|---|---|---|
boolean |
canProxy(Class<?> type)
Test if the ProxyFactory implementation is capable of creating a proxy instance for the given type. |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Method getInvoker
| Constructor Detail |
|---|
public StandardProxyFactory()
| Method Detail |
|---|
public <T> T createProxy(Invoker invoker,
Class<?>... types)
ProxyFactory
T - The proxy's type.invoker - the invocation handler.types - the types the proxy must emulate.
public boolean canProxy(Class<?> type)
ProxyFactory
type - the type to create a proxy instance for.
true if the type is supported.public boolean isProxyClass(Class<?> type)
ProxyFactory
type - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||