Class VirtualDescriptor

java.lang.Object
io.helidon.service.registry.VirtualDescriptor
All Implemented Interfaces:
Weighted, ServiceDescriptor<Object>, ServiceInfo, Comparable<Weighted>

public class VirtualDescriptor extends Object implements ServiceDescriptor<Object>
A virtual descriptor is not backed by a generated descriptor.
  • Method Details

    • serviceType

      public TypeName serviceType()
      Description copied from interface: ServiceInfo
      Type of the service this descriptor describes.
      Specified by:
      serviceType in interface ServiceInfo
      Returns:
      service type
    • descriptorType

      public TypeName descriptorType()
      Description copied from interface: ServiceInfo
      Type of the service descriptor (usually generated).
      Specified by:
      descriptorType in interface ServiceInfo
      Returns:
      descriptor type
    • contracts

      public Set<ResolvedType> contracts()
      Description copied from interface: ServiceInfo
      Set of contracts the described service implements or provides through a factory method.
      Specified by:
      contracts in interface ServiceInfo
      Returns:
      set of contracts
    • weight

      public double weight()
      Description copied from interface: Weighted
      Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use the Weight annotation rather than implementing this interface as long as it is supported by the library using this Weighted.
      Specified by:
      weight in interface Weighted
      Returns:
      the weight of this service, must be a non-negative number
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object