Class BootstrapResult
java.lang.Object
com.ultikits.ultitools.bootstrap.BootstrapResult
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final recordTest-only preparation results and the already validated replacement snapshot. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModuleJarAdmissionprivate final intprivate final ModuleClassLoaderprivate final @Nullable IOExceptionprivate final ContributionRegistryprivate final ContributionLedgerprivate final @Nullable BootstrapResult.TestBootStateAbsent on Paper; an empty blockers list denotes an in-process boot without content blockers.private final @Nullable ModuleFileTransactions -
Constructor Summary
ConstructorsConstructorDescriptionBootstrapResult(@Nullable ModuleFileTransactions transactions, ModuleJarAdmission admission, ModuleClassLoader classLoader, @Nullable IOException classPathFailure, Map<Path, Throwable> failures, int bootstrapsRun, ContributionRegistry contributions, ContributionLedger ledger) BootstrapResult(@Nullable ModuleFileTransactions transactions, ModuleJarAdmission admission, ModuleClassLoader classLoader, @Nullable IOException classPathFailure, Map<Path, Throwable> failures, int bootstrapsRun, ContributionRegistry contributions, ContributionLedger ledger, @Nullable BootstrapResult.TestBootState testBoot) -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks the start of enable, after which failed reload callbacks cannot refuse a running module.int@Nullable IOException(package private) ContributionRegistry(package private) static BootstrapResultfailed(IOException failure) boolean(package private) ContributionLedgerledger()voidreportContent(Logger logger) Emits the enable-time custom content report after the server language is initialized.testBeanReplacements(Class<? extends UltiToolsPlugin> module) Returns the in-process replacement snapshot for exactly this module class, not another module with the same name.
-
Field Details
-
transactions
-
admission
-
classLoader
-
classPathFailure
-
bootstrapFailures
-
bootstrapsRun
private final int bootstrapsRun -
contributions
-
ledger
-
testBoot
Absent on Paper; an empty blockers list denotes an in-process boot without content blockers.
-
-
Constructor Details
-
BootstrapResult
BootstrapResult(@Nullable @Nullable ModuleFileTransactions transactions, ModuleJarAdmission admission, ModuleClassLoader classLoader, @Nullable @Nullable IOException classPathFailure, Map<Path, Throwable> failures, int bootstrapsRun, ContributionRegistry contributions, ContributionLedger ledger) -
BootstrapResult
BootstrapResult(@Nullable @Nullable ModuleFileTransactions transactions, ModuleJarAdmission admission, ModuleClassLoader classLoader, @Nullable @Nullable IOException classPathFailure, Map<Path, Throwable> failures, int bootstrapsRun, ContributionRegistry contributions, ContributionLedger ledger, @Nullable @Nullable BootstrapResult.TestBootState testBoot)
-
-
Method Details
-
testBeanReplacements
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
-
failed
-
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
- Returns:
- this start's admission decisions, shared with discovery
-
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
- Returns:
- a preparation failure (including an explicit class-directory module refusal in test boot),
or
null
-
bootstrapFailures
-
bootstrapsRun
public int bootstrapsRun()- Returns:
- the number of declared hooks attempted, including failed hooks
-
contributions
ContributionRegistry contributions() -
ledger
ContributionLedger ledger() -
beginEnable
public void beginEnable()Marks the start of enable, after which failed reload callbacks cannot refuse a running module. -
reportContent
Emits the enable-time custom content report after the server language is initialized.- Parameters:
logger- the runtime console logger
-