Interface FormElementResolver

All Superinterfaces:
io.micronaut.core.order.Ordered
All Known Implementing Classes:
CompletedFileUploadFormElementResolver, CompositeFormElementResolver, DefaultFormElementResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Indexed(FormElementResolver.class) public interface FormElementResolver extends io.micronaut.core.order.Ordered
Resolves given a bean property the FormElement class which should be used to be build the element.
Since:
5.1.0
Author:
Sergio del Amo
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    <B, T> Optional<Class<? extends FormElement>>
    resolve(@NonNull io.micronaut.core.beans.BeanProperty<B,T> beanProperty)
    Resolves given a bean property the FormElement class which should be used to be build the element.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • resolve

      <B, T> Optional<Class<? extends FormElement>> resolve(@NonNull @NonNull io.micronaut.core.beans.BeanProperty<B,T> beanProperty)
      Resolves given a bean property the FormElement class which should be used to be build the element.
      Type Parameters:
      B - The bean type
      T - The bean property type
      Parameters:
      beanProperty - Bean Property
      Returns:
      The best Form Element for the bean property.