Interface ContextualServiceQuery


public interface ContextualServiceQuery
Combines the ServiceInfo criteria along with the InjectionPointInfo context that the query applies to.
See Also:
  • Method Details

    • serviceInfoCriteria

      ServiceInfoCriteria serviceInfoCriteria()
      The criteria to use for the lookup into Services.
      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

      static ContextualServiceQuery create(InjectionPointInfo ipInfo, boolean expected)
      Creates a contextual service query given the injection point info.
      Parameters:
      ipInfo - the injection point info
      expected - true if the query is expected to at least have a single match
      Returns:
      the query