T - type of the pooled object to be proxiedpublic class CglibProxySource<T> extends java.lang.Object implements ProxySource<T>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends T> |
superclass |
| Constructor and Description |
|---|
CglibProxySource(java.lang.Class<? extends T> superclass)
Create a new proxy source for the given class.
|
| Modifier and Type | Method and Description |
|---|---|
T |
createProxy(T pooledObject,
UsageTracking<T> usageTracking)
Create a new proxy object, wrapping the given pooled object.
|
T |
resolveProxy(T proxy)
Obtain the wrapped object from the given proxy.
|
private final java.lang.Class<? extends T> superclass
public CglibProxySource(java.lang.Class<? extends T> superclass)
superclass - The class to proxypublic T createProxy(T pooledObject, UsageTracking<T> usageTracking)
ProxySourcecreateProxy in interface ProxySource<T>pooledObject - The object to wrapusageTracking - The instance, if any (usually the object pool) to
be provided with usage tracking information for this
wrapped objectpublic T resolveProxy(T proxy)
ProxySourceresolveProxy in interface ProxySource<T>proxy - The proxy object