Package spin.proxy
Class CGLibProxyFactory
- java.lang.Object
-
- spin.ProxyFactory
-
- spin.proxy.CGLibProxyFactory
-
public class CGLibProxyFactory extends ProxyFactory
A factory of proxies utilizing CGLib.
-
-
Constructor Summary
Constructors Constructor Description CGLibProxyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
areProxyEqual(java.lang.Object proxy1, java.lang.Object proxy2)
Test if the given proxies of this factory are intercepting the same object.java.lang.Object
createProxy(java.lang.Object object, Evaluator evaluator)
Create a proxy for the given object that evaluates invocations with the given evaluator.boolean
isProxy(java.lang.Object object)
Test if the given object is a proxy created by this factory.-
Methods inherited from class spin.ProxyFactory
evaluteInvocation
-
-
-
-
Method Detail
-
createProxy
public java.lang.Object createProxy(java.lang.Object object, Evaluator evaluator)
Description copied from class:ProxyFactory
Create a proxy for the given object that evaluates invocations with the given evaluator.- Specified by:
createProxy
in classProxyFactory
- Parameters:
object
- object to create proxy forevaluator
- evaluator to evaluate invocations with- Returns:
- new proxy
-
isProxy
public boolean isProxy(java.lang.Object object)
Description copied from class:ProxyFactory
Test if the given object is a proxy created by this factory.- Specified by:
isProxy
in classProxyFactory
- Parameters:
object
- object to test- Returns:
true
if given object is a Spin proxy,false
otherwise
-
areProxyEqual
protected boolean areProxyEqual(java.lang.Object proxy1, java.lang.Object proxy2)
Description copied from class:ProxyFactory
Test if the given proxies of this factory are intercepting the same object.- Specified by:
areProxyEqual
in classProxyFactory
- Parameters:
proxy1
- first proxyproxy2
- second proxy- Returns:
- true if both proxies are intercepting the same object
-
-