Class BootstrapResult

java.lang.Object
com.ultikits.ultitools.bootstrap.BootstrapResult

@Internal public final class BootstrapResult extends Object
Internal handover from Paper bootstrap to plugin enable; not an API for modules. References and the failure-map snapshot never change. Transactions and admission retain the same identity across both stages so load observation decides exactly the updates applied before load.
  • Field Details

  • Constructor Details

  • Method Details

    • failed

      static BootstrapResult failed(IOException failure)
    • transactions

      public ModuleFileTransactions transactions()
      Returns:
      the original transactions, for post-load observation and delayed translated reports
      Throws:
      IllegalStateException - if bootstrap failed before transactions could be created
    • admission

      public ModuleJarAdmission admission()
      Returns:
      this start's admission decisions, shared with discovery
    • classLoader

      public ModuleClassLoader classLoader()
      Returns:
      this start's shared module class loader
    • classPathFailure

      @Nullable public @Nullable IOException classPathFailure()
      Returns:
      a class-path failure to report during enable, or null
    • bootstrapFailures

      public Map<Path, Throwable> bootstrapFailures()
      Returns:
      an immutable, filename-ordered snapshot of individual early-hook failures
    • bootstrapsRun

      public int bootstrapsRun()
      Returns:
      the number of declared hooks attempted, including failed hooks
    • contributions

      ContributionRegistry contributions()
    • ledger

    • beginEnable

      public void beginEnable()
      Marks the start of enable, after which failed reload callbacks cannot refuse a running module.
    • reportContent

      public void reportContent(Logger logger)
      Emits the enable-time custom content report after the server language is initialized.
      Parameters:
      logger - the runtime console logger