| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.proxy.toys.delegate.DelegatingInvoker<T>
com.thoughtworks.proxy.toys.pool.Pool.PoolingInvoker<T>
protected static class Pool.PoolingInvoker<T>
The Invoker of the proxy.
| Constructor Summary | |
|---|---|
| protected  | Pool.PoolingInvoker(Pool<T> pool,
                                       ProxyFactory proxyFactory,
                                       ObjectReference<T> delegateReference,
                                       DelegationMode delegationMode)Construct a PoolingInvoker. | 
| Method Summary | |
|---|---|
|  Object | invoke(Object proxy,
             Method method,
             Object[] args)Invocation of a method of the proxied object. | 
| protected  T | proxy()Create a proxy for the types of the pool. | 
|  void | 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<T> pool,
                              ProxyFactory proxyFactory,
                              ObjectReference<T> delegateReference,
                              DelegationMode delegationMode)
pool - the corresponding PoolproxyFactory - the ProxyFactory to usedelegateReference - the ObjectReference with the delegatedelegationMode - one of the delegation modes| Method Detail | 
|---|
public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Invoker
invoke in interface Invokerinvoke in class DelegatingInvoker<T>proxy - the proxy instance.method - the method to invoke.args - the arguments of the method.
Throwable - if the invoked method has thrown.public void returnInstanceToPool()
Resetter returns
 the object.
protected T proxy()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||