Package org.apache.commons.lang3.event
Class EventUtils.EventBindingInvocationHandler
java.lang.Object
org.apache.commons.lang3.event.EventUtils.EventBindingInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- EventUtils
private static final class EventUtils.EventBindingInvocationHandler
extends Object
implements InvocationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventBindingInvocationHandler(Object target, String methodName, String[] eventTypes) Creates a new instance ofEventUtils.EventBindingInvocationHandler. -
Method Summary
-
Field Details
-
target
-
methodName
-
eventTypes
-
-
Constructor Details
-
EventBindingInvocationHandler
Creates a new instance ofEventUtils.EventBindingInvocationHandler.- Parameters:
target- The target object for method invocations.methodName- The name of the method to be invoked.eventTypes- The names of the supported event types.
-
-
Method Details
-
hasMatchingParametersMethod
Tests whether a method for the passed in parameters can be found.- Parameters:
method- The listener method invoked.- Returns:
- A flag whether the parameters could be matched.
-
invoke
Handles a method invocation on the proxy object.- Specified by:
invokein interfaceInvocationHandler- Parameters:
proxy- The proxy instance.method- The method to be invoked.parameters- The parameters for the method invocation.- Returns:
- The result of the method call.
- Throws:
SecurityException- Thrown if an underlying accessible object's method denies the request.Throwable- Thrown if an error occurs.- See Also:
-