Typically, but not necessarily, used for finding annotated handler methods.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | MethodIntrospector.
the type of metadata returned T>A callback interface for metadata lookup on a given method. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Method | Returns: a corresponding invocable method on the target typethe method to check method, Class<?> the target type to search methods on
(typically an interface-based JDK proxy) targetType)Select an invocable method on the target type: either the given method itself if actually exposed on the target type, or otherwise a corresponding method on one of the target type's interfaces or on the target type itself. |
| public static <T> Map | Returns: the selected methods associated with their metadata (in the order of retrieval), or an empty map in case of no matchthe target type to search methods on targetType, final MethodIntrospector.a metadataLookupMetadataLookup callback to inspect methods of interest,
returning non-null metadata to be associated with a given method if there is a match,
or null for no matchSelect methods on the given target type based on the lookup of associated metadata. |
| public static Set | Returns: the selected methods, or an empty set in case of no matchthe target type to search methods on targetType, final ReflectionUtils.a methodFilterMethodFilter to help
recognize handler methods of interestSelect methods on the given target type based on a filter. |
| MethodIntrospector | back to summary |
|---|---|
| private MethodIntrospector() | |
| selectInvocableMethod | back to summary |
|---|---|
| public static Method selectInvocableMethod(Method method, Class<?> targetType) Select an invocable method on the target type: either the given method itself if actually exposed on the target type, or otherwise a corresponding method on one of the target type's interfaces or on the target type itself. Matches on user-declared interfaces will be preferred since they are likely to contain relevant metadata that corresponds to the method on the target class.
| |
| selectMethods | back to summary |
|---|---|
| public static <T> Map Select methods on the given target type based on the lookup of associated metadata. Callers define methods of interest through the
| |
| selectMethods | back to summary |
|---|---|
| public static Set Select methods on the given target type based on a filter. Callers define methods of interest through the
| |
| Modifier and Type | Method and Description |
|---|---|
| public T |
| inspect | back to summary |
|---|---|
| public T inspect(Method method) Perform a lookup on the given method and return associated metadata, if any. | |