Interface TernaryServiceDescriptor.Provider<T>

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

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

    • resolve

      default Map.Entry<String,String[]> resolve(String grandparent, String parent, String child)
      Description copied from interface: TernaryServiceDescriptor
      Resolves the dynamic name the service using the specified segments.
      Specified by:
      resolve in interface TernaryServiceDescriptor<T>
      Parameters:
      grandparent - the first dynamic segment
      parent - the second dynamic segment
      child - the third dynamic segment
      Returns:
      a tuple containing the resolved name and dynamic segments, or null if segments are not resolvable.