protected class EventListenerSupport.ProxyInvocationHandler extends Object implements InvocationHandler
invoke(Object, Method, Object[]) in the order added to the underlying List.| Constructor and Description |
|---|
ProxyInvocationHandler()
Constructs a new instance.
|
ProxyInvocationHandler(FailableConsumer<Throwable,IllegalAccessException> handler)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handle(Throwable t)
Handles an exception thrown by a listener.
|
Object |
invoke(Object unusedProxy,
Method method,
Object[] args)
Propagates the method call to all registered listeners in place of the proxy listener object.
|
public ProxyInvocationHandler()
public ProxyInvocationHandler(FailableConsumer<Throwable,IllegalAccessException> handler)
handler - Handles Throwables.protected void handle(Throwable t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
t - The ThrowableIllegalAccessException - thrown by the listener.IllegalArgumentException - thrown by the listener.InvocationTargetException - thrown by the listener.public Object invoke(Object unusedProxy, Method method, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
Calls listeners in the order added to the underlying List.
invoke in interface InvocationHandlerunusedProxy - the proxy object representing a listener on which the invocation was called; not usedmethod - the listener method that will be called on all of the listeners.args - event arguments to propagate to the listeners.InvocationTargetException - if an error occursIllegalArgumentException - if an error occursIllegalAccessException - if an error occursCopyright © 2001–2025 The Apache Software Foundation. All rights reserved.