|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspin.ProxyFactory
spin.proxy.JDKProxyFactory
public class JDKProxyFactory
A factory of proxies utilizing JDK virtual proxies.
| Constructor Summary | |
|---|---|
JDKProxyFactory()
|
|
| Method Summary | |
|---|---|
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)
The created proxy will not implement non-public interfaces from different class loaders since these yield an IllegalAccessError on
construction of a proxy. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDKProxyFactory()
| Method Detail |
|---|
public java.lang.Object createProxy(java.lang.Object object,
Evaluator evaluator)
IllegalAccessError on
construction of a proxy.
createProxy in class ProxyFactoryobject - object to create proxy forevaluator - evaluator to evaluate invocations with
public boolean isProxy(java.lang.Object object)
ProxyFactory
isProxy in class ProxyFactoryobject - object to test
true if given object is a Spin proxy,
false otherwise
protected boolean areProxyEqual(java.lang.Object proxy1,
java.lang.Object proxy2)
ProxyFactory
areProxyEqual in class ProxyFactoryproxy1 - first proxyproxy2 - second proxy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||