Class CompletedFileUploadFormElementResolver

java.lang.Object
io.micronaut.views.fields.formelementresolvers.CompletedFileUploadFormElementResolver
All Implemented Interfaces:
io.micronaut.core.order.Ordered, FormElementResolver

@Requires(classes=io.micronaut.http.multipart.CompletedFileUpload.class) @Singleton public class CompletedFileUploadFormElementResolver extends Object implements FormElementResolver
Resolves a form element of type InputFileFormElement if the bean property is CompletedFileUpload.
Since:
5.1.0
Author:
Sergio del Amo
  • Constructor Details

    • CompletedFileUploadFormElementResolver

      public CompletedFileUploadFormElementResolver()
  • Method Details

    • resolve

      public <B, T> Optional<Class<? extends FormElement>> resolve(io.micronaut.core.beans.BeanProperty<B,T> beanProperty)
      Description copied from interface: FormElementResolver
      Resolves given a bean property the FormElement class which should be used to be build the element.
      Specified by:
      resolve in interface FormElementResolver
      Type Parameters:
      B - The bean type
      T - The bean property type
      Parameters:
      beanProperty - Bean Property
      Returns:
      The best Form Element for the bean property.
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered