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

java.lang.Object
io.helidon.inject.processor.ProcessingEvent.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:
io.helidon.builder.api.Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
ProcessingEvent.Builder
Enclosing interface:
ProcessingEvent

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

    • BuilderBase

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

    • from

      public BUILDER from(ProcessingEvent prototype)
      Update this builder from an existing prototype instance.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(ProcessingEvent.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
    • clearProcessingEnvironment

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

      public BUILDER processingEnvironment(ProcessingEnvironment processingEnvironment)
      Optionally, the active ProcessingEnvironment if it is available.
      Parameters:
      processingEnvironment - the processing environment if it is available
      Returns:
      updated builder instance
      See Also:
    • elementsOfInterest

      public BUILDER elementsOfInterest(Set<? extends io.helidon.common.types.TypedElementInfo> elementsOfInterest)
      The jakarta.inject.Inject'able type elements, and possibly any other elements that are found to be of interest for processing. The set of processed elements are subject to change in the future. The implementor is therefore encouraged to not make assumptions about the set of elements that are in this set.
      Parameters:
      elementsOfInterest - the set of injectable elements, and any other elements of interest to the APT
      Returns:
      updated builder instance
      See Also:
    • addElementsOfInterest

      public BUILDER addElementsOfInterest(Set<? extends io.helidon.common.types.TypedElementInfo> elementsOfInterest)
      The jakarta.inject.Inject'able type elements, and possibly any other elements that are found to be of interest for processing. The set of processed elements are subject to change in the future. The implementor is therefore encouraged to not make assumptions about the set of elements that are in this set.
      Parameters:
      elementsOfInterest - the set of injectable elements, and any other elements of interest to the APT
      Returns:
      updated builder instance
      See Also:
    • processingEnvironment

      public Optional<ProcessingEnvironment> processingEnvironment()
      Optionally, the active ProcessingEnvironment if it is available.
      Returns:
      the processing environment
    • elementsOfInterest

      public Set<io.helidon.common.types.TypedElementInfo> elementsOfInterest()
      The jakarta.inject.Inject'able type elements, and possibly any other elements that are found to be of interest for processing. The set of processed elements are subject to change in the future. The implementor is therefore encouraged to not make assumptions about the set of elements that are in this set.
      Returns:
      the elements of interest
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.