Interface DiscoveryIndex

All Known Implementing Classes:
DiscoveryIndex_bc08ae87d805677e

public interface DiscoveryIndex
Compile-time snapshot of classes in a given module that would otherwise be found by runtime classpath scanning (e.g. @Component beans, Module implementations, repositories, converters, placeholders, configs, etc.).

Generated by the DiscoveryIndexProcessor annotation processor and loaded at runtime by DiscoveryIndexReader, which discovers per-class marker resources under META-INF/spigot-boot/discovery/. The generated implementation resolves each listed class by name through DiscoveryIndexSupport (so a class backed by an absent optional dependency is skipped rather than crashing the index) and keeps the .class literals the Maven Shade Plugin's minimizeJar reachability analyzer needs in a separate never-invoked method.

Keys are the string constants declared in DiscoveryCategories.

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • entries

      Map<String,Class<?>[]> entries()
      Returns:
      an unmodifiable map from category key to the classes registered for that category. Implementations should return a consistent instance; callers must not mutate it.