Interface InputTypeFactory
public interface InputTypeFactory
SPI interface for components that can derive an input type from a
ResolvableType
. Primary usage to enable to
default the resolution to use HTML based HtmlInputType
without
creating a package cycle. If you want to replace that implementation with a different one, register it in
META-INF/spring.factories
.- Since:
- 1.3
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiongetInputType
(Class<?> type) Derive an input type from the givenResolvableType
.
-
Method Details
-
getInputType
Derive an input type from the givenResolvableType
.- Parameters:
type
- type to resolve the input type for, will never be null.- Returns:
- the input type for the given type or null if no type could be derived.
-