Class Aot.BuilderBase<BUILDER extends Aot.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Aot>

java.lang.Object
io.helidon.common.features.metadata.Aot.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
Aot.Builder
Enclosing interface:
Aot

public abstract static class Aot.BuilderBase<BUILDER extends Aot.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Aot> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for Aot.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(Aot prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(Aot.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • supported

      public BUILDER supported(boolean supported)
      Whether this module supports AOT, defaults to true.
      Parameters:
      supported - is deprecated
      Returns:
      updated builder instance
      See Also:
    • clearDescription

      public BUILDER clearDescription()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • description

      public BUILDER description(String description)
      AOT description.
      Parameters:
      description - description
      Returns:
      updated builder instance
      See Also:
    • supported

      public boolean supported()
      Whether this module supports AOT, defaults to true.
      Returns:
      the supported
    • description

      public Optional<String> description()
      AOT description.
      Returns:
      the description
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.