Interface Ordered

All Known Subinterfaces:
AutoConfigurationCustomizerProvider, ResourceProvider

public interface Ordered
Interface to be extended by SPIs that need to guarantee ordering during loading.
Since:
1.17.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns the order of applying the SPI implementing this interface.
  • Method Details

    • order

      default int order()
      Returns the order of applying the SPI implementing this interface. Higher values are applied later, for example: an SPI with order=1 will run after an SPI with order=0. SPI implementations with equal values will be run in a non-deterministic order.