Interface ServiceDescriptor<T>

Type Parameters:
T - the type of the value provided by the described service
All Known Subinterfaces:
BinaryServiceDescriptor<T>, BinaryServiceDescriptor.Provider<T>, NullaryServiceDescriptor<T>, NullaryServiceDescriptor.Provider<T>, QuaternaryServiceDescriptor<T>, QuaternaryServiceDescriptor.Provider<T>, RuntimeCapabilityProvider<T>, ServiceDescriptor.Provider<T,SD>, TernaryServiceDescriptor<T>, TernaryServiceDescriptor.Provider<T>, UnaryServiceDescriptor<T>, UnaryServiceDescriptor.Provider<T>

public interface ServiceDescriptor<T>
Describes a service by its name and provided value type.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Provides a service descriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    <U extends T>
    ServiceDescriptor<U>
    asType(Class<U> type)
    Returns a sub-class view of this service descriptor.
    Returns the name of this described service.
    Returns the provided value type of this described service.
  • Method Details

    • getName

      String getName()
      Returns the name of this described service.
      Returns:
      the name of this described service.
    • getType

      Class<T> getType()
      Returns the provided value type of this described service.
      Returns:
      the provided value type of this described service.
    • asType

      <U extends T> ServiceDescriptor<U> asType(Class<U> type)
      Returns a sub-class view of this service descriptor.
      Type Parameters:
      U - the subclass type
      Parameters:
      type - a sub-class of this descriptor's type
      Returns:
      a sub-class view of this service descriptor.