Class SimpleMethodInvoker
java.lang.Object
org.springframework.classify.util.SimpleMethodInvoker
- All Implemented Interfaces:
MethodInvoker
Simple implementation of the
MethodInvoker
interface that invokes a method on
an object. If the method has no arguments, but arguments are provided, they are ignored
and the method is invoked anyway. If there are more arguments than there are provided,
then an exception is thrown.- Since:
- 1.1
- Author:
- Lucas Ward, Artem Bilan
-
Constructor Summary
ConstructorDescriptionSimpleMethodInvoker
(Object object, Method method) SimpleMethodInvoker
(Object object, String methodName, Class<?>... paramTypes) -
Method Summary
-
Constructor Details
-
SimpleMethodInvoker
-
SimpleMethodInvoker
-
-
Method Details
-
invokeMethod
- Specified by:
invokeMethod
in interfaceMethodInvoker
-
equals
-
hashCode
public int hashCode()
-