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

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

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

    • BuilderBase

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

    • from

      public BUILDER from(ContextualServiceQuery 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(ContextualServiceQuery.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
    • serviceInfoCriteria

      public BUILDER serviceInfoCriteria(ServiceInfoCriteria serviceInfoCriteria)
      The criteria to use for the lookup into Services.
      Parameters:
      serviceInfoCriteria - the service info criteria
      Returns:
      updated builder instance
      See Also:
    • serviceInfoCriteria

      public BUILDER serviceInfoCriteria(Consumer<ServiceInfoCriteria.Builder> consumer)
      The criteria to use for the lookup into Services.
      Parameters:
      consumer - consumer of builder for the service info criteria
      Returns:
      updated builder instance
      See Also:
    • serviceInfoCriteria

      public BUILDER serviceInfoCriteria(Supplier<? extends ServiceInfoCriteria> supplier)
      The criteria to use for the lookup into Services.
      Parameters:
      supplier - supplier of the service info criteria
      Returns:
      updated builder instance
      See Also:
    • clearInjectionPointInfo

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

      public BUILDER injectionPointInfo(InjectionPointInfo injectionPointInfo)
      Optionally, the injection point context this search applies to.
      Parameters:
      injectionPointInfo - the optional injection point context info
      Returns:
      updated builder instance
      See Also:
    • injectionPointInfo

      public BUILDER injectionPointInfo(Consumer<InjectionPointInfo.Builder> consumer)
      Optionally, the injection point context this search applies to.
      Parameters:
      consumer - the optional injection point context info
      Returns:
      updated builder instance
      See Also:
    • expected

      public BUILDER expected(boolean expected)
      Set to true if there is an expectation that there is at least one match result from the search.
      Parameters:
      expected - true if it is expected there is at least a single match result
      Returns:
      updated builder instance
      See Also:
    • serviceInfoCriteria

      public Optional<ServiceInfoCriteria> serviceInfoCriteria()
      The criteria to use for the lookup into Services.
      Returns:
      the service info criteria
    • injectionPointInfo

      public Optional<InjectionPointInfo> injectionPointInfo()
      Optionally, the injection point context this search applies to.
      Returns:
      the injection point info
    • expected

      public boolean expected()
      Set to true if there is an expectation that there is at least one match result from the search.
      Returns:
      the expected
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.