Class BootstrapResult

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

@Internal public final class BootstrapResult extends Object
Internal handover from bootstrap to plugin enable; not an API for modules. References and diagnostic snapshots 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

    • testBeanReplacements

      @Internal public Map<Class<?>,Object> testBeanReplacements(Class<? extends UltiToolsPlugin> module)
      Returns the in-process replacement snapshot for exactly this module class, not another module with the same name. Paper handovers always return an empty map.
      Parameters:
      module - the class being registered
      Returns:
      the immutable replacement map keyed by dependency type
    • isTestBoot

      public boolean isTestBoot()
      Returns:
      whether this handover came from the in-process test boot entry
    • modulesRequiringRealServer

      public List<String> modulesRequiringRealServer()
      Returns:
      the immutable list of modules that must be verified on a real Paper server; an empty list means no such block, not that preparation otherwise succeeded
    • 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 preparation failed before transactions could be created or test preparation was blocked by an explicit module refusal or content that needs a real Paper server
    • 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, already closed if a test boot is blocked by an explicit module refusal or by content that requires real Paper
    • classPathFailure

      @Nullable public @Nullable IOException classPathFailure()
      Returns:
      a preparation failure (including an explicit class-directory module refusal in test boot), or null
    • bootstrapFailures

      public Map<Path, Throwable> bootstrapFailures()
      Returns:
      an immutable snapshot of early-hook failures keyed by JAR in filename order, followed by any explicit class-directory failures in input order
    • 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