|
||||||||||
| 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. |
|
|
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 CglibProxyFactory()
| Method Detail |
|---|
public <T> T createProxy(Invoker invoker,
Class<?>... types)
Note: If any type the proxy instance must fulfill are all interfaces, the factory will currently create a proxy based on the JDK.
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 | |||||||||