public abstract class ProxyFactory extends Object
Evaluator
Constructor and Description |
---|
ProxyFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
areProxyEqual(Object proxy1,
Object proxy2)
Test if the given proxies of this factory are intercepting the same
object.
|
abstract Object |
createProxy(Object object,
Evaluator evaluator)
Create a proxy for the given object that evaluates invocations with the
given evaluator.
|
protected Object |
evaluteInvocation(Evaluator evaluator,
Object proxy,
Invocation invocation)
Evaluate the given invocation with the given evaluator.
|
abstract boolean |
isProxy(Object object)
Test if the given object is a proxy created by this factory.
|
public abstract Object createProxy(Object object, Evaluator evaluator)
object
- object to create proxy forevaluator
- evaluator to evaluate invocations withpublic abstract boolean isProxy(Object object)
object
- object to testtrue
if given object is a Spin proxy,
false
otherwiseprotected abstract boolean areProxyEqual(Object proxy1, Object proxy2)
proxy1
- first proxyproxy2
- second proxyprotected Object evaluteInvocation(Evaluator evaluator, Object proxy, Invocation invocation) throws Throwable
evaluator
- evaluator to evaluate withproxy
- proxy that intcepted the invocationinvocation
- the invocation to evaluateThrowable
Copyright © 2014. All rights reserved.