Interface ComponentFactory

All Known Implementing Classes:
ComponentFactoryImpl

public interface ComponentFactory
  • Method Summary

    Modifier and Type Method Description
    Optional<Component> createFromField​(Field field)
    Given a field on a POJO, creates a form field object that represents it.
  • Method Details

    • createFromField

      Optional<Component> createFromField​(Field field)
      Given a field on a POJO, creates a form field object that represents it. If the field is excluded (e.g. by having an @Exclude annotation attached, then the Optional returned will be empty.
      Parameters:
      field - Field on a POJO
      Returns:
      Form Component, if applicable