Class Discovery
java.lang.Object
dev.engine.core.Discovery
Central registry of all
Discoverable classes across all modules.
On JVM, registries are loaded automatically from
META-INF/services/dev.engine.core.DiscoveryRegistry resource files
(written by the annotation processor). On TeaVM, the generated
DiscoveryBootstrap adds registries via addRegistry(DiscoveryRegistry).
Initialization happens automatically on first use — no explicit call needed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddRegistry(DiscoveryRegistry registry) Adds a registry and runs its initialization.Returns all discoverable classes from all loaded registries.static voidEnsures registries are loaded.
-
Method Details
-
addRegistry
Adds a registry and runs its initialization. -
allClasses
-
ensureInitialized
public static void ensureInitialized()Ensures registries are loaded. On JVM, scans resource files written by the annotation processor. Safe to call multiple times.
-