Interface ContextualServiceQuery

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
ContextualServiceQuery.BuilderBase.ContextualServiceQueryImpl

public interface ContextualServiceQuery extends Prototype.Api
Combines the ServiceInfo criteria along with the InjectionPointInfo context that the query applies to.
See Also:
  • 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

      static ContextualServiceQuery create()
      Create a new instance with default values.
      Returns:
      a new instance
    • 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
    • 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