Class EventListenerSupport.ProxyInvocationHandler

    • Constructor Detail

      • ProxyInvocationHandler

        protected ProxyInvocationHandler()
    • Method Detail

      • invoke

        public Object invoke​(Object unusedProxy,
                             Method method,
                             Object[] args)
                      throws Throwable
        Propagates the method call to all registered listeners in place of the proxy listener object.
        Specified by:
        invoke in interface InvocationHandler
        Parameters:
        unusedProxy - the proxy object representing a listener on which the invocation was called; not used
        method - the listener method that will be called on all of the listeners.
        args - event arguments to propagate to the listeners.
        Returns:
        the result of the method call
        Throws:
        Throwable - if an error occurs