protected static class Pool.PoolingInvoker extends DelegatingInvoker
Invoker
of the proxy.Modifier | Constructor and Description |
---|---|
protected |
Pool.PoolingInvoker(Pool pool,
ProxyFactory proxyFactory,
ObjectReference delegateReference,
int delegationMode)
Construct a PoolingInvoker.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invocation of a method of the proxied object.
|
protected java.lang.Object |
proxy()
Create a proxy for the types of the pool.
|
java.lang.Object |
returnInstanceToPool()
Return the current instance to the pool.
|
delegate, equals, getDelegateReference, getMethodToInvoke, getProxyFactory, hashCode, invokeOnDelegate
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 modespublic java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.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.java.lang.Throwable
- if the invoked method has thrown.public java.lang.Object returnInstanceToPool()
Resetter
returns
the object.Void.TYPE
protected java.lang.Object proxy()