Class BootstrapResult
java.lang.Object
com.ultikits.ultitools.bootstrap.BootstrapResult
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ModuleJarAdmissionprivate final intprivate final ModuleClassLoaderprivate final @Nullable IOExceptionprivate final ContributionRegistryprivate final ContributionLedgerprivate 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) -
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) (package private) ContributionLedgerledger()voidreportContent(Logger logger) Emits the enable-time custom content report after the server language is initialized.
-
Field Details
-
transactions
-
admission
-
classLoader
-
classPathFailure
-
bootstrapFailures
-
bootstrapsRun
private final int bootstrapsRun -
contributions
-
ledger
-
-
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)
-
-
Method Details
-
failed
-
transactions
- Returns:
- the original transactions, for post-load observation and delayed translated reports
- Throws:
IllegalStateException- if bootstrap failed before transactions could be created
-
admission
- Returns:
- this start's admission decisions, shared with discovery
-
classLoader
- Returns:
- this start's shared module class loader
-
classPathFailure
- Returns:
- a class-path failure to report during enable, 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
-