Class SingleContextSource.NonClosingDirContextInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Enclosing class:
    SingleContextSource

    public static class SingleContextSource.NonClosingDirContextInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    A proxy for DirContext forwarding all operation to the target DirContext, but making sure that no close operations will be performed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonClosingDirContextInvocationHandler

        public NonClosingDirContextInvocationHandler​(javax.naming.directory.DirContext target)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable