Class ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl

java.lang.Object
io.helidon.inject.api.ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl
All Implemented Interfaces:
Prototype.Api, ServiceInfoCriteria
Enclosing class:
ServiceInfoCriteria.BuilderBase<BUILDER extends ServiceInfoCriteria.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ServiceInfoCriteria>

protected static class ServiceInfoCriteria.BuilderBase.ServiceInfoCriteriaImpl extends Object implements ServiceInfoCriteria
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • ServiceInfoCriteriaImpl

      protected ServiceInfoCriteriaImpl(ServiceInfoCriteria.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • serviceTypeName

      public Optional<TypeName> serviceTypeName()
    • scopeTypeNames

      public Set<TypeName> scopeTypeNames()
    • qualifiers

      public Set<Qualifier> qualifiers()
    • contractsImplemented

      public Set<TypeName> contractsImplemented()
    • runLevel

      public Optional<Integer> runLevel()
    • weight

      public Optional<Double> weight()
    • externalContractsImplemented

      public Set<TypeName> externalContractsImplemented()
    • activatorTypeName

      public Optional<TypeName> activatorTypeName()
    • moduleName

      public Optional<String> moduleName()
    • includeIntercepted

      public boolean includeIntercepted()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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