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.
|
evaluteInvocation
public Object createProxy(Object object, Evaluator evaluator)
IllegalAccessError
on
construction of a proxy.createProxy
in class ProxyFactory
object
- object to create proxy forevaluator
- evaluator to evaluate invocations withpublic boolean isProxy(Object object)
ProxyFactory
isProxy
in class ProxyFactory
object
- object to testtrue
if given object is a Spin proxy,
false
otherwiseprotected boolean areProxyEqual(Object proxy1, Object proxy2)
ProxyFactory
areProxyEqual
in class ProxyFactory
proxy1
- first proxyproxy2
- second proxyCopyright © 2014. All rights reserved.