Package spin.proxy
Class CGLibProxyFactory
java.lang.Object
spin.ProxyFactory
spin.proxy.CGLibProxyFactory
A factory of proxies utilizing CGLib.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareProxyEqual(Object proxy1, Object proxy2) Test if the given proxies of this factory are intercepting the same object.createProxy(Object object, Evaluator evaluator) Create a proxy for the given object that evaluates invocations with the given evaluator.booleanTest if the given object is a proxy created by this factory.Methods inherited from class spin.ProxyFactory
evaluteInvocation
-
Constructor Details
-
CGLibProxyFactory
public CGLibProxyFactory()
-
-
Method Details
-
createProxy
Description copied from class:ProxyFactoryCreate a proxy for the given object that evaluates invocations with the given evaluator.- Specified by:
createProxyin classProxyFactory- Parameters:
object- object to create proxy forevaluator- evaluator to evaluate invocations with- Returns:
- new proxy
-
isProxy
Description copied from class:ProxyFactoryTest if the given object is a proxy created by this factory.- Specified by:
isProxyin classProxyFactory- Parameters:
object- object to test- Returns:
trueif given object is a Spin proxy,falseotherwise
-
areProxyEqual
Description copied from class:ProxyFactoryTest if the given proxies of this factory are intercepting the same object.- Specified by:
areProxyEqualin classProxyFactory- Parameters:
proxy1- first proxyproxy2- second proxy- Returns:
- true if both proxies are intercepting the same object
-