Interface ServiceInfo

All Superinterfaces:
ServiceInfoBasics

public interface ServiceInfo extends ServiceInfoBasics
Describes a managed service or injection point.
See Also:
  • Method Details

    • externalContractsImplemented

      Set<String> externalContractsImplemented()
      The managed services external contracts / interfaces. These should also be contained within ServiceInfoBasics.contractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.
      Returns:
      the service external contracts implemented
      See Also:
    • activatorTypeName

      Optional<String> activatorTypeName()
      The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.
      Returns:
      the activator type name
    • moduleName

      Optional<String> moduleName()
      The name of the ascribed module, if known.
      Returns:
      the module name
    • matches

      default boolean matches(ServiceInfoCriteria 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
    • matchesQualifiers

      static boolean matchesQualifiers(Collection<QualifierAndValue> src, Collection<QualifierAndValue> criteria)
      Matches qualifier collections.
      Parameters:
      src - the target service info to evaluate
      criteria - the criteria to compare against
      Returns:
      true if the criteria provided matches this instance
    • toBuilder

      static io.helidon.pico.api.DefaultServiceInfo.Builder toBuilder(ServiceInfoBasics val)
      Creates a builder from a ServiceInfoBasics instance.
      Parameters:
      val - the instance to copy
      Returns:
      the fluent builder