Hook

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Hook(val plugins: Array<String>, val unless: Array<String> = [], val requireAll: Boolean = false, val loadListener: KClass<out LoadListener> = LoadListener::class)

An annotation to mark a class as a hook.

Parameters

plugins

The names of the plugins that this hook works with.

requireAll

Whether all plugins in plugins have to be loaded for this hook to be loaded.

loadListener

The LoadListener that is used to wait for the plugin to finish loading.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requireAll: Boolean = false
Link copied to clipboard