Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class DisableFun(val dispatcher: Dispatcher = Dispatcher.SYNC, val runAfter: Array<KClass<*>> = [], val runBefore: Array<KClass<*>> = [])

Marks a function to be called during disable.

Link copied to clipboard

Defines how an InitializerRunnable is dispatched.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Init(val stage: InitStage, val dispatcher: Dispatcher = Dispatcher.SYNC, val runAfter: Array<KClass<*>> = [], val runBefore: Array<KClass<*>> = [])

Marks an addon class to be initialized at startup.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class InitFun(val dispatcher: Dispatcher = Dispatcher.SYNC, val runAfter: Array<KClass<*>> = [], val runBefore: Array<KClass<*>> = [])

Marks a function to be called during initialization. This requires the class to be annotated with Init or InternalInit, and automatically has a dependency on the initialization of the class.

Link copied to clipboard

An exception specifically made to be thrown during initialization of an Initializable. When such an exception is thrown there, only the message but not the stack trace is printed.

Link copied to clipboard

Defines the stage at which something should be initialized.