Interface ServiceDescriptor.Provider<T,SD extends ServiceDescriptor<T>>

Type Parameters:
T - the service value type
SD - the provided service descriptor type
All Superinterfaces:
ServiceDescriptor<T>, Supplier<SD>
All Known Subinterfaces:
BinaryServiceDescriptor.Provider<T>, NullaryServiceDescriptor.Provider<T>, QuaternaryServiceDescriptor.Provider<T>, TernaryServiceDescriptor.Provider<T>, UnaryServiceDescriptor.Provider<T>
Enclosing interface:
ServiceDescriptor<T>

public static interface ServiceDescriptor.Provider<T,SD extends ServiceDescriptor<T>> extends Supplier<SD>, ServiceDescriptor<T>
Provides a service descriptor. Typically implemented by enumerations providing service descriptors of the same type.
  • Method Details

    • getName

      default String getName()
      Description copied from interface: ServiceDescriptor
      Returns the name of this described service.
      Specified by:
      getName in interface ServiceDescriptor<T>
      Returns:
      the name of this described service.
    • getType

      default Class<T> getType()
      Description copied from interface: ServiceDescriptor
      Returns the provided value type of this described service.
      Specified by:
      getType in interface ServiceDescriptor<T>
      Returns:
      the provided value type of this described service.