Example usage for Java org.springframework.web.method.annotation ModelFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
ModelFactory(@Nullable List Create a new instance with the given @ModelAttribute methods. |
String | getNameForParameter(MethodParameter parameter) Derive the model attribute name for the given method parameter based on a @ModelAttribute parameter annotation (if present) or falling back on parameter type based conventions. |
String | getNameForReturnValue(@Nullable Object returnValue, MethodParameter returnType) Derive the model attribute name for the given return value. |
void | initModel(NativeWebRequest request, ModelAndViewContainer container, HandlerMethod handlerMethod) Populate the model in the following order:
|
void | updateModel(NativeWebRequest request, ModelAndViewContainer container) Promote model attributes listed as @SessionAttributes to the session. |