NES-style pixel art: a retro game console with several cartridges floating above its slot, each cartridge labeled like a plugin (NROM, MMC1, MMC3), a glowing 'ServiceLoader' label on the console reading them automatically

Java SPI: The Built-in Superpower Every Developer Should Know

There is a plugin system hiding inside the JDK that most developers never use on purpose. Java SPI (ServiceLoader) lets you add behavior without touching the code that consumes it. I show it with real code from my NES emulator, kill the fragile META-INF file with Google AutoService, cover the modern JPMS variant, and finish with how Quarkus does the same idea at build time.

June 13, 2026 · 14 min · Matheus Oliveira