Package org.springframework.validation
Interface DataBinder.ValueResolver
- All Known Implementing Classes:
ServletRequestDataBinder.ServletRequestValueResolver
- Enclosing class:
- DataBinder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy for
constructor binding
to look up the values
to bind to a given constructor parameter.-
Method Summary
Modifier and TypeMethodDescriptionresolveValue
(String name, Class<?> type) Resolve the value for the given name and target parameter type.
-
Method Details
-
resolveValue
Resolve the value for the given name and target parameter type.- Parameters:
name
- the name to use for the lookup, possibly a nested path for constructor parameters on nested objectstype
- the target type, based on the constructor parameter type- Returns:
- the resolved value, possibly
null
if none found
-