|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.proxy.toys.delegate.DelegatingInvoker
com.thoughtworks.proxy.toys.pool.Pool.PoolingInvoker
protected static class Pool.PoolingInvoker
The Invoker
of the proxy.
Constructor Summary | |
---|---|
protected |
Pool.PoolingInvoker(Pool pool,
ProxyFactory proxyFactory,
ObjectReference delegateReference,
int delegationMode)
Construct a PoolingInvoker. |
Method Summary | |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invocation of a method of the proxied object. |
protected Object |
proxy()
Create a proxy for the types of the pool. |
Object |
returnInstanceToPool()
Return the current instance to the pool. |
Methods inherited from class com.thoughtworks.proxy.toys.delegate.DelegatingInvoker |
---|
delegate, equals, getDelegateReference, getMethodToInvoke, getProxyFactory, hashCode, invokeOnDelegate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Pool.PoolingInvoker(Pool pool, ProxyFactory proxyFactory, ObjectReference delegateReference, int delegationMode)
pool
- the corresponding Pool
proxyFactory
- the ProxyFactory
to usedelegateReference
- the ObjectReference
with the delegatedelegationMode
- onde of the delgation modesMethod Detail |
---|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Invoker
invoke
in interface Invoker
invoke
in class DelegatingInvoker
proxy
- the proxy instance.method
- the method to invoke.args
- the arguments of the mothod.
Throwable
- if the invoked method has thrown.public Object returnInstanceToPool()
Resetter
returns
the object.
Void.TYPE
protected Object proxy()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |