InvocableHandlerMethod, and to then
apply return value handling and exception handling. Holds all necessary
configuration necessary to do so.
| Modifier and Type | Field and Description |
|---|---|
| private final HandlerMethodArgumentResolverComposite | |
| private final Map | |
| private final Map | |
| private final Function | |
| private static final Log | |
| private ReactiveAdapterRegistry | |
| private final HandlerMethodReturnValueHandlerComposite |
| Access | Constructor and Description |
|---|---|
| public | InvocableHelper(Function<Class<?>, AbstractExceptionHandlerMethodResolver> exceptionMethodResolverFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addArgumentResolvers(List<? extends HandlerMethodArgumentResolver> resolvers)
Add the arguments resolvers to use for message handling and exception handling methods. |
| public void | addReturnValueHandlers(List<? extends HandlerMethodReturnValueHandler> handlers)
Add the return value handlers to use for message handling and exception handling methods. |
| public HandlerMethodArgumentResolverComposite | |
| public ReactiveAdapterRegistry | |
| public Mono | |
| private Mono | |
| public InvocableHandlerMethod | Returns: a method to handle the exception, ornullthe method where the exception was raised handlerMethod, Throwable the exception raised or signaled ex)Find an exception handling method for the given exception. |
| public InvocableHandlerMethod | Returns: the created instancethe target handler method to invoke handlerMethod)Create |
| public void | registerExceptionHandlerAdvice(MessagingAdviceBean bean, AbstractExceptionHandlerMethodResolver resolver)
Method to populate the MessagingAdviceBean cache (e.g. to support "global"
|
| public void | setReactiveAdapterRegistry(ReactiveAdapterRegistry registry)
Configure the registry for adapting various reactive types. |
| argumentResolvers | back to summary |
|---|---|
| private final HandlerMethodArgumentResolverComposite argumentResolvers | |
| exceptionHandlerAdviceCache | back to summary |
|---|---|
| private final Map<MessagingAdviceBean, AbstractExceptionHandlerMethodResolver> exceptionHandlerAdviceCache | |
| exceptionHandlerCache | back to summary |
|---|---|
| private final Map<Class<?>, AbstractExceptionHandlerMethodResolver> exceptionHandlerCache | |
| exceptionMethodResolverFactory | back to summary |
|---|---|
| private final Function<Class<?>, AbstractExceptionHandlerMethodResolver> exceptionMethodResolverFactory | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private ReactiveAdapterRegistry reactiveAdapterRegistry | |
| returnValueHandlers | back to summary |
|---|---|
| private final HandlerMethodReturnValueHandlerComposite returnValueHandlers | |
| InvocableHelper | back to summary |
|---|---|
| public InvocableHelper(Function<Class<?>, AbstractExceptionHandlerMethodResolver> exceptionMethodResolverFactory) | |
| addArgumentResolvers | back to summary |
|---|---|
| public void addArgumentResolvers(List<? extends HandlerMethodArgumentResolver> resolvers) Add the arguments resolvers to use for message handling and exception handling methods. | |
| addReturnValueHandlers | back to summary |
|---|---|
| public void addReturnValueHandlers(List<? extends HandlerMethodReturnValueHandler> handlers) Add the return value handlers to use for message handling and exception handling methods. | |
| getArgumentResolvers | back to summary |
|---|---|
| public HandlerMethodArgumentResolverComposite getArgumentResolvers() Return the configured resolvers.
| |
| getReactiveAdapterRegistry | back to summary |
|---|---|
| public ReactiveAdapterRegistry getReactiveAdapterRegistry() Return the configured registry for adapting reactive types. | |
| handleMessage | back to summary |
|---|---|
| public Mono | |
| handleReturnValue | back to summary |
|---|---|
| private Mono | |
| initExceptionHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod initExceptionHandlerMethod(HandlerMethod handlerMethod, Throwable ex) Find an exception handling method for the given exception. The default implementation searches methods in the class hierarchy of
the HandlerMethod first and if not found, it continues searching for
additional handling methods registered via
| |
| initMessageMappingMethod | back to summary |
|---|---|
| public InvocableHandlerMethod initMessageMappingMethod(HandlerMethod handlerMethod) Create
| |
| registerExceptionHandlerAdvice | back to summary |
|---|---|
| public void registerExceptionHandlerAdvice(MessagingAdviceBean bean, AbstractExceptionHandlerMethodResolver resolver) Method to populate the MessagingAdviceBean cache (e.g. to support "global"
| |
| setReactiveAdapterRegistry | back to summary |
|---|---|
| public void setReactiveAdapterRegistry(ReactiveAdapterRegistry registry) Configure the registry for adapting various reactive types. By default this is an instance of | |