|
|
|||||||||
| 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 greater or equal 1.3.
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. |
Object |
createProxy(Class[] types,
Invoker invoker)
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 Object createProxy(Class[] types,
Invoker invoker)
ProxyFactory
types - the types the proxy must emulate.invoker - the invocation handler.
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 examin.
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 | |||||||||