Module io.helidon.pico.api
Package io.helidon.pico.api
Class AbstractContextualServiceQuery.Builder<B extends AbstractContextualServiceQuery.Builder<B,T>,T extends ContextualServiceQuery>
java.lang.Object
io.helidon.pico.api.AbstractContextualServiceQuery.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
Builder<B,,T> ContextualServiceQuery,Supplier<T>
- Direct Known Subclasses:
DefaultContextualServiceQuery.Builder
- Enclosing class:
AbstractContextualServiceQuery
public abstract static class AbstractContextualServiceQuery.Builder<B extends AbstractContextualServiceQuery.Builder<B,T>,T extends ContextualServiceQuery>
extends Object
implements ContextualServiceQuery, Builder<B,T>
Fluent API builder for
T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.booleanexpected()Set to true if there is an expectation that there is at least one match result from the search.expected(boolean val) Setter for 'expected'.Optionally, the injection point context this search applies to.Setter for 'injectionPointInfo'.Setter for 'injectionPointInfo'.The criteria to use for the lookup intoServices.Setter for 'serviceInfoCriteria'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.pico.api.ContextualServiceQuery, calling theAttributeVisitorfor each.
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
serviceInfoCriteria
Description copied from interface:ContextualServiceQueryThe criteria to use for the lookup intoServices.- Specified by:
serviceInfoCriteriain interfaceContextualServiceQuery- Returns:
- the service info criteria
-
injectionPointInfo
Description copied from interface:ContextualServiceQueryOptionally, the injection point context this search applies to.- Specified by:
injectionPointInfoin interfaceContextualServiceQuery- Returns:
- the optional injection point context info
-
expected
public boolean expected()Description copied from interface:ContextualServiceQuerySet to true if there is an expectation that there is at least one match result from the search.- Specified by:
expectedin interfaceContextualServiceQuery- Returns:
- true if it is expected there is at least a single match result
-
serviceInfoCriteria
Setter for 'serviceInfoCriteria'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPointInfo
Setter for 'injectionPointInfo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
injectionPointInfo
Setter for 'injectionPointInfo'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
expected
Setter for 'expected'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.pico.api.ContextualServiceQuery, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-