walkmc.annotation.Component.kt Maven / Gradle / Ivy
package walkmc.annotation
import walkmc.*
/**
* A component class is used to register a function [Resource] to be called when the plugin starts.
*/
@Target(AnnotationTarget.FUNCTION)
annotation class Component(val load: Load = Load.ENABLE, val priority: Int = ResourceOrder.NORMAL)
/**
* An enum used to declare all possible ways that's the registered
* [Resource] function must be called.
*/
enum class Load {
LOAD,
ENABLE,
DISABLE
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy