Java org.springframework.web.method.annotation ModelFactory fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.method.annotation ModelFactory fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.method.annotation ModelFactory.

The text is from its open source code.

Constructor

Method

StringgetNameForParameter(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.
StringgetNameForReturnValue(@Nullable Object returnValue, MethodParameter returnType)
Derive the model attribute name for the given return value.
voidinitModel(NativeWebRequest request, ModelAndViewContainer container, HandlerMethod handlerMethod)
Populate the model in the following order:
  1. Retrieve "known" session attributes listed as @SessionAttributes .
voidupdateModel(NativeWebRequest request, ModelAndViewContainer container)
Promote model attributes listed as @SessionAttributes to the session.