Class JdkProxySource<T>

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

    public class JdkProxySource<T>
    extends java.lang.Object
    Provides proxy objects using Java reflection.
    Since:
    2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      JdkProxySource​(java.lang.ClassLoader classLoader, java.lang.Class<?>[] interfaces)
      Create a new proxy source for the given interfaces.
    • Constructor Detail

      • JdkProxySource

        public JdkProxySource​(java.lang.ClassLoader classLoader,
                              java.lang.Class<?>[] interfaces)
        Create 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 Detail

      • createProxy

        public T createProxy​(T pooledObject,
                             UsageTracking<T> usageTracking)
      • resolveProxy

        public T resolveProxy​(T proxy)