Class ServiceInfoCriteria.Builder

All Implemented Interfaces:
Prototype.Api, Prototype.Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>, Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>, ServiceInfoCriteria, Supplier<ServiceInfoCriteria>
Enclosing interface:
ServiceInfoCriteria

Fluent API builder for ServiceInfoCriteria.
  • Method Details

    • buildPrototype

      public ServiceInfoCriteria buildPrototype()
      Specified by:
      buildPrototype in interface Prototype.Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
    • build

      public ServiceInfoCriteria build()
      Specified by:
      build in interface Builder<ServiceInfoCriteria.Builder,ServiceInfoCriteria>
    • matches

      default boolean matches(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria)
      Determines whether this service info matches the criteria for injection. Matches is a looser form of equality check than equals(). If a service matches criteria it is generally assumed to be viable for assignability.
      Parameters:
      criteria - the criteria to compare against
      Returns:
      true if the criteria provided matches this instance
    • matchesContracts

      default boolean matchesContracts(io.helidon.inject.api.ServiceInfoCriteriaBlueprint criteria)
      Determines whether the provided criteria match just the contracts portion of the provided criteria. Note that it is expected any external contracts have been consolidated into the regular contract section.
      Parameters:
      criteria - the criteria to compare against
      Returns:
      true if the criteria provided matches this instance from only the contracts point of view