Package dk.cloudcreate.essentials.shared.reflection.invocation
package dk.cloudcreate.essentials.shared.reflection.invocation
-
ClassDescriptionDetermines which among as set of matching methods are invokedMethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE>Strategy interface that determines the mechanics of which methods are candidates for matching, what type a given method supports and how the method is invokedConsumer that will be called if
PatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methodsPatternMatchingMethodInvoker<ARGUMENT_COMMON_ROOT_TYPE>The purpose of thePatternMatchingMethodInvokeris to support pattern matching a set of typed methods against a concreteargumentand have the method(s) that match the type resolved by theMethodPatternMatcher.resolveInvocationArgumentTypeFromObject(Object)will be invoked by theMethodPatternMatcher.invokeMethod(Method, Object, Object, Class)with the argumentSingleArgumentAnnotatedMethodPatternMatcher<ARGUMENT_COMMON_ROOT_TYPE>A strategy that matches methods annotated withmatchOnMethodsAnnotatedWithand have a single method argument that is the same type or a sub-type of theARGUMENT_COMMON_ROOT_TYPE
Example using parameterized types: