public class JDKProxyFactory extends ProxyFactory
| Constructor and Description |
|---|
JDKProxyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areProxyEqual(Object proxy1,
Object proxy2)
Test if the given proxies of this factory are intercepting the same
object.
|
Object |
createProxy(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(Object object)
Test if the given object is a proxy created by this factory.
|
evaluteInvocationpublic Object createProxy(Object object, Evaluator evaluator)
IllegalAccessError on
construction of a proxy.createProxy in class ProxyFactoryobject - object to create proxy forevaluator - evaluator to evaluate invocations withpublic boolean isProxy(Object object)
ProxyFactoryisProxy in class ProxyFactoryobject - object to testtrue if given object is a Spin proxy,
false otherwiseprotected boolean areProxyEqual(Object proxy1, Object proxy2)
ProxyFactoryareProxyEqual in class ProxyFactoryproxy1 - first proxyproxy2 - second proxyCopyright © 2016. All rights reserved.