|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.proxy.factory.CglibProxyFactory
public class CglibProxyFactory
A ProxyFactory based on CGLIB.
com.thoughtworks.proxy.factory,
Serialized Form| Field Summary | |
|---|---|
static Method |
getInvoker
The getInvoker method. |
| Constructor Summary | |
|---|---|
CglibProxyFactory()
|
|
| 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 CglibProxyFactory()
| Method Detail |
|---|
public Object createProxy(Class[] types,
Invoker invoker)
Note: If any type the proxy instance must fullfill are all interfaces, the factory will currently create a proxy based on the JDK.
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 | |||||||||