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

java.lang.Object
io.helidon.inject.spi.InjectionPlan.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:
InjectionPlan.Builder
Enclosing interface:
InjectionPlan

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

    • BuilderBase

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

    • from

      public BUILDER from(InjectionPlan 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(InjectionPlan.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
    • serviceProvider

      public BUILDER serviceProvider(ServiceProvider<?> serviceProvider)
      The service provider this plan pertains to.
      Parameters:
      serviceProvider - the service provider this plan pertains to
      Returns:
      updated builder instance
      See Also:
    • injectionPointInfo

      public BUILDER injectionPointInfo(InjectionPointInfo injectionPointInfo)
      The injection point info for this element, which will also include its identity information.
      Parameters:
      injectionPointInfo - the injection point info for this element
      Returns:
      updated builder instance
      See Also:
    • injectionPointInfo

      public BUILDER injectionPointInfo(Consumer<InjectionPointInfo.Builder> consumer)
      The injection point info for this element, which will also include its identity information.
      Parameters:
      consumer - consumer of builder for the injection point info for this element
      Returns:
      updated builder instance
      See Also:
    • injectionPointInfo

      public BUILDER injectionPointInfo(Supplier<? extends InjectionPointInfo> supplier)
      The injection point info for this element, which will also include its identity information.
      Parameters:
      supplier - supplier of the injection point info for this element
      Returns:
      updated builder instance
      See Also:
    • injectionPointQualifiedServiceProviders

      public BUILDER injectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders)
      The list of service providers that are qualified to satisfy the given injection point for this service provider.
      Parameters:
      injectionPointQualifiedServiceProviders - the qualified service providers for this injection point
      Returns:
      updated builder instance
      See Also:
    • addInjectionPointQualifiedServiceProviders

      public BUILDER addInjectionPointQualifiedServiceProviders(List<ServiceProvider<?>> injectionPointQualifiedServiceProviders)
      The list of service providers that are qualified to satisfy the given injection point for this service provider.
      Parameters:
      injectionPointQualifiedServiceProviders - the qualified service providers for this injection point
      Returns:
      updated builder instance
      See Also:
    • addInjectionPointQualifiedServiceProvider

      public BUILDER addInjectionPointQualifiedServiceProvider(ServiceProvider<?> injectionPointQualifiedServiceProvider)
      The list of service providers that are qualified to satisfy the given injection point for this service provider.
      Parameters:
      injectionPointQualifiedServiceProvider - the qualified service providers for this injection point
      Returns:
      updated builder instance
      See Also:
    • wasResolved

      public BUILDER wasResolved(boolean wasResolved)
      Flag indicating whether resolution occurred.
      Parameters:
      wasResolved - true if resolution occurred
      Returns:
      updated builder instance
      See Also:
    • clearResolved

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

      public BUILDER resolved(Object resolved)
      The resolved value, set only if wasResolved().
      Parameters:
      resolved - any resolved value
      Returns:
      updated builder instance
      See Also:
    • serviceProvider

      public Optional<ServiceProvider<?>> serviceProvider()
      The service provider this plan pertains to.
      Returns:
      the service provider
    • injectionPointInfo

      public Optional<InjectionPointInfo> injectionPointInfo()
      The injection point info for this element, which will also include its identity information.
      Returns:
      the injection point info
    • injectionPointQualifiedServiceProviders

      public List<ServiceProvider<?>> injectionPointQualifiedServiceProviders()
      The list of service providers that are qualified to satisfy the given injection point for this service provider.
      Returns:
      the injection point qualified service providers
    • wasResolved

      public boolean wasResolved()
      Flag indicating whether resolution occurred.
      Returns:
      the was resolved
    • resolved

      public Optional<Object> resolved()
      The resolved value, set only if wasResolved().
      Returns:
      the resolved
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.