Interface MudlibBootProgress
public interface MudlibBootProgress
Receives host-visible progress events while a mudlib is being booted.
The callback is intentionally outside mudlib semantics: it reports JVMud's startup work to the local host process without requiring the mudlib to print anything or change driver-facing behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIdentifies which startup declaration requested a preload. -
Method Summary
Modifier and TypeMethodDescriptionstatic MudlibBootProgressnone()Returns a progress callback that ignores all boot events.default voidpreloadFailed(MudlibBootProgress.PreloadKind kind, String sourcePath, Throwable error) Called when a preload object could not be compiled or initialized.default voidpreloadFinished(MudlibBootProgress.PreloadKind kind, String sourcePath, boolean loaded) Called after JVMud finishes attempting to compile or retrieve a preload object.default voidpreloadStarted(MudlibBootProgress.PreloadKind kind, String sourcePath) Called immediately before JVMud attempts to compile or retrieve a preload object.
-
Method Details
-
none
Returns a progress callback that ignores all boot events. -
preloadStarted
Called immediately before JVMud attempts to compile or retrieve a preload object.- Parameters:
kind- origin of the preload requestsourcePath- mudlib source path without a trailing.c
-
preloadFinished
default void preloadFinished(MudlibBootProgress.PreloadKind kind, String sourcePath, boolean loaded) Called after JVMud finishes attempting to compile or retrieve a preload object.- Parameters:
kind- origin of the preload requestsourcePath- mudlib source path without a trailing.cloaded- whether the object was successfully loaded
-
preloadFailed
Called when a preload object could not be compiled or initialized.- Parameters:
kind- origin of the preload requestsourcePath- mudlib source path without a trailing.cerror- failure reported by the compiler or mudlib initialization
-