ProxiedObjectPool to create proxies as required.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the new proxy objectThe object to wrap pooledObject, UsageTracking<T> The instance, if any (usually the object pool) to
be provided with usage tracking information for this
wrapped object usageTracking)Creates a new proxy object, wrapping the given pooled object. |
| public T | Returns: The pooled object wrapped by the given proxyThe proxy object proxy)Resolves the wrapped object from the given proxy. |
| createProxy | back to summary |
|---|---|
| public T createProxy(T pooledObject, UsageTracking<T> usageTracking) Creates a new proxy object, wrapping the given pooled object.
| |
| resolveProxy | back to summary |
|---|---|
| public T resolveProxy(T proxy) Resolves the wrapped object from the given proxy.
| |