spring-framework / org.springframework.validation.support / BindingAwareConcurrentModel

BindingAwareConcurrentModel

open class BindingAwareConcurrentModel : ConcurrentModel

Subclass of ConcurrentModel that automatically removes the BindingResult object when its corresponding target attribute is replaced through regular Map operations.

This is the class exposed to handler methods by Spring WebFlux, typically consumed through a declaration of the org.springframework.ui.Model interface as a parameter type. There is typically no need to create it within user code. If necessary a handler method can return a regular java.util.Map, likely a java.util.ConcurrentMap, for a pre-determined model.

Author
Rossen Stoyanchev

Since
5.0

See Also
BindingResult

Constructors

<init>

BindingAwareConcurrentModel()

Subclass of ConcurrentModel that automatically removes the BindingResult object when its corresponding target attribute is replaced through regular Map operations.

This is the class exposed to handler methods by Spring WebFlux, typically consumed through a declaration of the org.springframework.ui.Model interface as a parameter type. There is typically no need to create it within user code. If necessary a handler method can return a regular java.util.Map, likely a java.util.ConcurrentMap, for a pre-determined model.

Functions

put

open fun put(key: String, value: Any): Any?

putAll

open fun putAll(from: Map<out String, *>): Unit