spin.proxy

Class JDKProxyFactory


public class JDKProxyFactory
extends ProxyFactory

A factory of proxies utilizing JDK virtual proxies.

Method Summary

protected boolean
areProxyEqual(Object proxy1, Object proxy2)
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)

Method Details

areProxyEqual

protected boolean areProxyEqual(Object proxy1,
                                Object proxy2)

createProxy

public 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.

isProxy

public boolean isProxy(Object object)