Module io.helidon.inject.api
Package io.helidon.inject.api
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 builderPROTOTYPE- type of the prototype interface that would be built byPrototype.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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.booleanexpected()Set to true if there is an expectation that there is at least one match result from the search.expected(boolean expected) Set to true if there is an expectation that there is at least one match result from the search.from(ContextualServiceQuery prototype) Update this builder from an existing prototype instance.from(ContextualServiceQuery.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Optionally, the injection point context this search applies to.injectionPointInfo(InjectionPointInfo injectionPointInfo) Optionally, the injection point context this search applies to.injectionPointInfo(Consumer<InjectionPointInfo.Builder> consumer) Optionally, the injection point context this search applies to.protected voidHandles providers and decorators.The criteria to use for the lookup intoServices.serviceInfoCriteria(ServiceInfoCriteria serviceInfoCriteria) The criteria to use for the lookup intoServices.The criteria to use for the lookup intoServices.serviceInfoCriteria(Supplier<? extends ServiceInfoCriteria> supplier) The criteria to use for the lookup intoServices.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
serviceInfoCriteria
The criteria to use for the lookup intoServices.- Parameters:
serviceInfoCriteria- the service info criteria- Returns:
- updated builder instance
- See Also:
-
serviceInfoCriteria
The criteria to use for the lookup intoServices.- Parameters:
consumer- consumer of builder for the service info criteria- Returns:
- updated builder instance
- See Also:
-
serviceInfoCriteria
The criteria to use for the lookup intoServices.- Parameters:
supplier- supplier of the service info criteria- Returns:
- updated builder instance
- See Also:
-
clearInjectionPointInfo
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
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
Optionally, the injection point context this search applies to.- Parameters:
consumer- the optional injection point context info- Returns:
- updated builder instance
- See Also:
-
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
The criteria to use for the lookup intoServices.- Returns:
- the service info criteria
-
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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-