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 class EventUtils.EventBindingInvocationHandler
extends Object
implements InvocationHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventBindingInvocationHandler
(Object target, String methodName, String[] eventTypes) Creates a new instance ofEventBindingInvocationHandler
. -
Method Summary
-
Field Details
-
target
-
methodName
-
eventTypes
-
-
Constructor Details
-
EventBindingInvocationHandler
Creates a new instance ofEventBindingInvocationHandler
.- 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
-
invoke
Handles a method invocation on the proxy object.- Specified by:
invoke
in 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
-
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
-