protected static class Pool.PoolingInvoker<T> extends DelegatingInvoker<T>
Invoker
of the proxy.Modifier | Constructor and Description |
---|---|
protected |
PoolingInvoker(Pool<T> pool,
ProxyFactory proxyFactory,
ObjectReference<T> delegateReference,
DelegationMode delegationMode)
Construct a PoolingInvoker.
|
Modifier and Type | Method and Description |
---|---|
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.
|
delegate, equals, getDelegateReference, getMethodToInvoke, getProxyFactory, hashCode, invokeOnDelegate
protected PoolingInvoker(Pool<T> pool, ProxyFactory proxyFactory, ObjectReference<T> delegateReference, DelegationMode delegationMode)
pool
- the corresponding Pool
proxyFactory
- the ProxyFactory
to usedelegateReference
- the ObjectReference
with the delegatedelegationMode
- one of the delegation modespublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Invoker
public void returnInstanceToPool()
Resetter
returns
the object.Copyright © 2005–2018 Codehaus. All rights reserved.