Class HostAssembly
java.lang.Object
com.ultikits.ultitools.manager.HostAssembly
Owns attachment and its inverse for both kinds of host.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final RegistrationLedgerprivate final RegistrationLedgerprivate booleanprivate final Consumer<HostAssembly.Step> private final SimpleContainerprivate final PluginHostprivate final RegistrationLedgerprivate final RegistrationLedgerprivate final RegistrationLedgerprivate final HostRegistrationScopeprivate Runnable -
Constructor Summary
ConstructorsConstructorDescriptionHostAssembly(PluginHost host, SimpleContainer context) HostAssembly(PluginHost host, SimpleContainer context, Consumer<HostAssembly.Step> checkpoint) -
Method Summary
Modifier and TypeMethodDescription(package private) booleanactivate()(package private) voidassemble()(package private) booleanattach()(package private) @Nullable ThrowableReports the failed steps and returns only the failure that callers may propagate.private void(package private) PluginHosthost()(package private) boolean(package private) voidprivate voidprivate voidregisterModuleEventHandlers(EventBus events, Object bean) private voidprivate voidRelease registrations, then destroy beans while their data and messages are still available.
-
Field Details
-
host
-
context
-
ledger
-
hostServices
-
activation
-
afterResources
-
lifetime
-
registrationScope
-
checkpoint
-
writeMessageReferences
-
assembled
private boolean assembled -
activated
private boolean activated
-
-
Constructor Details
-
HostAssembly
HostAssembly(PluginHost host, SimpleContainer context) -
HostAssembly
HostAssembly(PluginHost host, SimpleContainer context, Consumer<HostAssembly.Step> checkpoint)
-
-
Method Details
-
host
PluginHost host() -
recordManualCleanup
void recordManualCleanup() -
attach
boolean attach() -
isAssembled
boolean isAssembled() -
assemble
void assemble() -
activate
boolean activate() -
registerResources
private void registerResources() -
registerModuleEventHandlers
-
registerBukkit
private void registerBukkit() -
unwind
Release registrations, then destroy beans while their data and messages are still available. -
drainCommands
private void drainCommands() -
detach
-