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