Package org.apache.commons.pool2.proxy

# Class JdkProxySource<T>

java.lang.Object
org.apache.commons.pool2.proxy.JdkProxySource<T>

Type Parameters:
  `T` - type of the pooled object to be proxied

public class JdkProxySource<T> extends Object
Provides proxy objects using Java reflection.

Since:
  2.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JdkProxySource(ClassLoader classLoader, Class<?>[] interfaces)`
  Constructs a new proxy source for the given interfaces.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `createProxy(T pooledObject, UsageTracking<T> usageTracking)`
  `T`
  `resolveProxy(T proxy)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### JdkProxySource

    public JdkProxySource(ClassLoader classLoader, Class<?>[] interfaces)
    Constructs a new proxy source for the given interfaces.
    Parameters:
      `classLoader` - The class loader with which to create the proxy
      `interfaces` - The interfaces to proxy

- ## Method Details

  - ### createProxy

    public T createProxy(T pooledObject, UsageTracking<T> usageTracking)

  - ### resolveProxy

    public T resolveProxy(T proxy)

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`
    Since:
      2.4.3