Class DiscoveryResourceLoader

java.lang.Object
dev.engine.core.DiscoveryResourceLoader

public final class DiscoveryResourceLoader extends Object
JVM-only resource loader for Discovery. Reads META-INF/services/dev.engine.core.DiscoveryRegistry files from the classpath and registers the listed implementations.

This class is loaded reflectively by Discovery so that TeaVM's compiler never traces into ClassLoader.getResources(), which is not available on the web platform.

  • Method Details

    • load

      public static void load()
      Scans classpath resources and registers all discovered registries.