Package dk.cloudcreate.essentials.shared.reflection.invocation
-
Interface Summary Interface Description MethodPatternMatcher<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 invokedNoMatchingMethodsHandler Consumer that will be called ifPatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methods -
Class Summary Class Description PatternMatchingMethodInvoker<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: -
Enum Summary Enum Description InvocationStrategy Determines which among as set of matching methods are invoked -
Exception Summary Exception Description InvocationException