public interface ContextualServiceQuery
Combines the
ServiceInfo criteria along with the InjectionPointInfo context
that the query applies to.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
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
-
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
-