- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ContextualServiceQuery.BuilderBase.ContextualServiceQueryImpl
Combines the
ServiceInfo criteria along with the InjectionPointInfo context
that the query applies to.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forContextualServiceQuery.static classContextualServiceQuery.BuilderBase<BUILDER extends ContextualServiceQuery.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ContextualServiceQuery> Fluent API builder base forContextualServiceQuery. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a new fluent API builder to customize configuration.builder(ContextualServiceQuery instance) Create a new fluent API builder from an existing instance.static ContextualServiceQuerycreate()Create a new instance with default values.static ContextualServiceQuerycreate(InjectionPointInfo ipInfo, boolean expected) Creates a contextual service query given the injection point info.booleanexpected()Set to true if there is an expectation that there is at least one match result from the search.Optionally, the injection point context this search applies to.The criteria to use for the lookup intoServices.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
create
Creates a contextual service query given the injection point info.- Parameters:
ipInfo- the injection point infoexpected- true if the query is expected to at least have a single match- Returns:
- the query
-
serviceInfoCriteria
ServiceInfoCriteria serviceInfoCriteria()The criteria to use for the lookup intoServices.- Returns:
- the service info criteria
-
injectionPointInfo
Optional<InjectionPointInfo> injectionPointInfo()Optionally, the injection point context this search applies to.- Returns:
- the optional injection point context info
-
expected
boolean expected()Set to true if there is an expectation that there is at least one match result from the search.- Returns:
- true if it is expected there is at least a single match result
-