Interface Builder<T>


  • public interface Builder<T>
    Builder. Validates and constructs a configuration bean
    Since:
    5.2
    Author:
    Tristan Tarrant
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      T create()
      Create the configuration bean
      Builder<?> read​(T template)
      Reads the configuration from an already created configuration bean into this builder.
      default void validate()
      Validate the data in this builder before building the configuration bean
    • Method Detail

      • validate

        default void validate()
        Validate the data in this builder before building the configuration bean
      • create

        T create()
        Create the configuration bean
        Returns:
      • read

        Builder<?> read​(T template)
        Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration
        Parameters:
        template - the configuration from which to "clone" this config if needed.