Interface OrderedServiceProvider

All Superinterfaces:
Comparable<OrderedServiceProvider>
All Known Subinterfaces:
ExpressionResolverProvider, LiteralRhsCompiler, LiteralSourceCompiler, MemoryFactoryProvider, TypeResolverProvider

public interface OrderedServiceProvider extends Comparable<OrderedServiceProvider>
The OrderedServiceProvider interface represents a service provider interface (SPI) that allows multiple implementations to be ordered based on their assigned sort order.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    int
    When several implementations are found, and no specific implementation class is given, the engine will automatically pick the one with the least sorting order.
  • Method Details

    • sortOrder

      int sortOrder()

      When several implementations are found, and no specific implementation class is given, the engine will automatically pick the one with the least sorting order.

      Returns:
      sort order
    • compareTo

      default int compareTo(OrderedServiceProvider o)
      Specified by:
      compareTo in interface Comparable<OrderedServiceProvider>