AbstractNamedValueArgumentResolver for named value
resolvers that are synchronous and yet non-blocking. Subclasses implement
the synchronous resolveNamedValue to which the asynchronous
resolveName delegates to by default.
| Access | Constructor and Description |
|---|---|
| protected | AbstractNamedValueSyncArgumentResolver(ConfigurableBeanFactory
a bean factory to use for resolving factory, ReactiveAdapterRegistry ${...}
placeholder and #{...} SpEL expressions in default values;
or null if default values are not expected to have expressionsfor checking reactive type wrappers registry)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | resolveArgument(MethodParameter
the method parameter parameter, BindingContext the binding context to use bindingContext, ServerWebExchange the current exchange exchange)
Overrides default org. Implements org. Resolve the value for the method parameter. |
| public Object | resolveArgumentValue(MethodParameter
the method parameter parameter, BindingContext the binding context to use context, ServerWebExchange the current exchange exchange)Implements org. Resolve the value for the method parameter synchronously. |
| protected final Mono | resolveName(String
the name of the value being resolved name, MethodParameter the method parameter to resolve to an argument value
(pre-nested in case of a param, ServerWebExchange java. declaration)the current exchange exchange)Implements abstract org. Resolve the given parameter type and value name into an argument value. |
| protected abstract Object | resolveNamedValue(String name, MethodParameter param, ServerWebExchange exchange)
Actually resolve the value synchronously. |
| AbstractNamedValueSyncArgumentResolver | back to summary |
|---|---|
| protected AbstractNamedValueSyncArgumentResolver(ConfigurableBeanFactory factory, ReactiveAdapterRegistry registry) Create a new
| |
| resolveArgumentValue | back to summary |
|---|---|
| public Object resolveArgumentValue(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) Implements org. Resolve the value for the method parameter synchronously.
| |
| resolveName | back to summary |
|---|---|
| protected final Mono Implements abstract org. Resolve the given parameter type and value name into an argument value.
| |
| resolveNamedValue | back to summary |
|---|---|
| protected abstract Object resolveNamedValue(String name, MethodParameter param, ServerWebExchange exchange) Actually resolve the value synchronously.
| |