|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spin.ProxyFactory
public abstract class ProxyFactory
A factory of proxies which intercept invocations, using Evaluators to evaluate them.
Evaluator
Constructor Summary | |
---|---|
ProxyFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyFactory()
Method Detail |
---|
public abstract java.lang.Object createProxy(java.lang.Object object, Evaluator evaluator)
object
- object to create proxy forevaluator
- evaluator to evaluate invocations with
public abstract boolean isProxy(java.lang.Object object)
object
- object to test
true
if given object is a Spin proxy,
false
otherwiseprotected abstract boolean areProxyEqual(java.lang.Object proxy1, java.lang.Object proxy2)
proxy1
- first proxyproxy2
- second proxy
protected 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 evaluate
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |