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 Type
    Method
    Description
    Derive an input type from the given ResolvableType.
  • Method Details

    • getInputType

      @Nullable String getInputType(Class<?> type)
      Derive an input type from the given ResolvableType.
      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.