Package net.anwiba.commons.reflection
Class OptionalReflectionMethodInvoker<C,R>
java.lang.Object
net.anwiba.commons.reflection.OptionalReflectionMethodInvoker<C,R>
-
Constructor Summary
ConstructorsConstructorDescriptionOptionalReflectionMethodInvoker(Class<? extends C> clazz, String methodName, Class<?>... argumentTypes) OptionalReflectionMethodInvoker(Class<? extends C> clazz, Function<Method[], String> methodNameExtractor, Function<Method[], Class<?>[]> argumentTypesExtractor, BiFunction<Object[], Class<?>[], Object[]> valuesConverter) -
Method Summary
Modifier and TypeMethodDescriptionstatic <C,R> OptionalReflectionMethodInvoker<C, R> createSetter(Class<? extends C> clazz, String annotationName, String parameterName, String parameterValue)
-
Constructor Details
-
OptionalReflectionMethodInvoker
-
OptionalReflectionMethodInvoker
-
-
Method Details
-
createSetter
public static <C,R> OptionalReflectionMethodInvoker<C,R> createSetter(Class<? extends C> clazz, String annotationName, String parameterName, String parameterValue) -
invoke
- Throws:
InvocationTargetException
-