Java, Java8, Java21, Java17, Migration.
for certain modules. uses: Declares that a module consumes a service. This keyword is used in combination with the provides keyword to establish service relationships. provides: Specifies service implementations provided by a module as part of the Java Service Provider Interface (SPI). with: