RequestMappingHandlerAdapter with
default model initialization through @ModelAttribute methods.
| Modifier and Type | Field and Description |
|---|---|
| private final ReactiveAdapterRegistry | |
| private final ControllerMethodResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private List | findModelAttributes(HandlerMethod handlerMethod, SessionAttributesHandler sessionAttributesHandler)
Find |
| private String | |
| public static String | Returns: the derived namea descriptor for the method parameter parameter)Derive the model attribute name for the given method parameter based on
a |
| private Mono | |
| public Mono | Returns: aMono for when the model is populated.the target controller method handlerMethod, InitBinderBindingContext the context containing the model bindingContext, ServerWebExchange the current exchange exchange)Initialize the |
| private Mono | invokeModelAttributeMethods(BindingContext bindingContext, List<InvocableHandlerMethod> modelMethods, ServerWebExchange exchange)
|
| private boolean |
| adapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry adapterRegistry | |
| methodResolver | back to summary |
|---|---|
| private final ControllerMethodResolver methodResolver | |
| ModelInitializer | back to summary |
|---|---|
| public ModelInitializer(ControllerMethodResolver methodResolver, ReactiveAdapterRegistry adapterRegistry) | |
| findModelAttributes | back to summary |
|---|---|
| private List Find | |
| getAttributeName | back to summary |
|---|---|
| private String getAttributeName(MethodParameter param) | |
| getNameForParameter | back to summary |
|---|---|
| public static String getNameForParameter(MethodParameter parameter) Derive the model attribute name for the given method parameter based on
a
| |
| handleResult | back to summary |
|---|---|
| private Mono | |
| initModel | back to summary |
|---|---|
| public Mono Initialize the
| |
| invokeModelAttributeMethods | back to summary |
|---|---|
| private Mono | |
| isAsyncVoidType | back to summary |
|---|---|
| private boolean isAsyncVoidType(ResolvableType type, MethodParameter typeSource, ReactiveAdapter adapter) | |