Class CompositeInvocationHandlerImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addInvocationHandler​(java.lang.Class<?> interf, java.lang.reflect.InvocationHandler handler)
      Add an invocation handler for all methods on interface interf.
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      void setDefaultHandler​(java.lang.reflect.InvocationHandler handler)
      Set the default invocation handler to use if none of the invocation handlers added by calls to addInvocationHandler apply.
      • Methods inherited from class java.lang.Object

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

      • classToInvocationHandler

        private java.util.Map<java.lang.Class<?>,​java.lang.reflect.InvocationHandler> classToInvocationHandler
      • defaultHandler

        private java.lang.reflect.InvocationHandler defaultHandler
    • Constructor Detail

      • CompositeInvocationHandlerImpl

        public CompositeInvocationHandlerImpl()
    • Method Detail

      • setDefaultHandler

        public void setDefaultHandler​(java.lang.reflect.InvocationHandler handler)
        Description copied from interface: CompositeInvocationHandler
        Set the default invocation handler to use if none of the invocation handlers added by calls to addInvocationHandler apply.
        Specified by:
        setDefaultHandler in interface CompositeInvocationHandler
      • 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