Interface MethodScanner
- All Known Implementing Classes:
AsyncReturnTypeScanner,CacheControlScanner,ResponseHeaderMethodScanner,ResponseStatusMethodScanner
public interface MethodScanner
SPI that allows external integrations to handle custom parameters.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ParameterExtractorhandleCustomParameter(org.jboss.jandex.Type paramType, Map<org.jboss.jandex.DotName, org.jboss.jandex.AnnotationInstance> annotations, boolean field, Map<String, Object> methodContext) Method that is called when a parameter of an unknown type is discovered.default booleanisMethodSignatureAsync(org.jboss.jandex.MethodInfo info) default List<HandlerChainCustomizer>scan(org.jboss.jandex.MethodInfo method, org.jboss.jandex.ClassInfo actualEndpointClass, Map<String, Object> methodContext) Method that allows for customising an endpoints handler chain
-
Method Details
-
scan
default List<HandlerChainCustomizer> scan(org.jboss.jandex.MethodInfo method, org.jboss.jandex.ClassInfo actualEndpointClass, Map<String, Object> methodContext) Method that allows for customising an endpoints handler chain- Parameters:
method- The methodactualEndpointClass-methodContext- Any context discovered byhandleCustomParameter(Type, Map, boolean, Map)- Returns:
-
handleCustomParameter
default ParameterExtractor handleCustomParameter(org.jboss.jandex.Type paramType, Map<org.jboss.jandex.DotName, org.jboss.jandex.AnnotationInstance> annotations, boolean field, Map<String, Object> methodContext) Method that is called when a parameter of an unknown type is discovered.- Parameters:
paramType- The parameter typeannotations- The annotationsfield- If this is field injectionmethodContext- Context that can be used to pass information intoscan(MethodInfo, ClassInfo, Map)- Returns:
-
isMethodSignatureAsync
default boolean isMethodSignatureAsync(org.jboss.jandex.MethodInfo info)
-