Class ModuleJarAdmission

java.lang.Object
com.ultikits.ultitools.manager.ModuleJarAdmission

@Internal public final class ModuleJarAdmission extends Object
This start's module metadata and minimum-API decisions, shared by class-path collection and main-class discovery. Read after updates are applied and discarded with the framework; a refused module never supplies classes merely because its JAR sorts before an accepted copy. Diagnostics remain in discovery, after the language has been initialized.
  • Field Details

  • Constructor Details

    • ModuleJarAdmission

      public ModuleJarAdmission()
  • Method Details

    • inspect

      public ModuleJarAdmission.Entry inspect(File jar)
      Reads each module's declaration and decides minimum admission once for this start.
      Parameters:
      jar - the module JAR, already checked by the archive guard
      Returns:
      the cached metadata and decision
    • markBootstrapFailed

      public void markBootstrapFailed(Path jar, Throwable failure)
      Records a failed early hook before discovery can load the module main class.
      Parameters:
      jar - the module's own archive
      failure - the original early-hook failure
    • entries

      public Map<Path, ModuleJarAdmission.Entry> entries()
      Returns:
      a filename-ordered snapshot of metadata already inspected at this start