Interface UnaryServiceDescriptor.Provider<T>

Type Parameters:
T - the service value type
All Superinterfaces:
ServiceDescriptor<T>, ServiceDescriptor.Provider<T,UnaryServiceDescriptor<T>>, Supplier<UnaryServiceDescriptor<T>>, UnaryServiceDescriptor<T>
Enclosing interface:
UnaryServiceDescriptor<T>

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

    • resolve

      default Map.Entry<String,String[]> resolve(String reference)
      Description copied from interface: UnaryServiceDescriptor
      Resolves the dynamic name of the service using the specified segment.
      Specified by:
      resolve in interface UnaryServiceDescriptor<T>
      Parameters:
      reference - a dynamic segment
      Returns:
      a tuple containing the resolved name and dynamic segments, or null if segment is not resolvable.