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 invocationsmethodName- the name of the method to be invokedeventTypes- the names of the supported event types
-
-
Method Details
-
hasMatchingParametersMethod
Checks 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 instancemethod- the method to be invokedparameters- the parameters for the method invocation- Returns:
- the result of the method call
- Throws:
Throwable- if an error occurs
-