All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.whoisamyy.api.plugins.annotations.PluginClass Maven / Gradle / Ivy

There is a newer version: 0.0.4-release
Show newest version
package ru.whoisamyy.api.plugins.annotations;

import ru.whoisamyy.core.PluginManager;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used to define is class needs to be loaded by {@link PluginManager} or not.
 *

*

If {@link PluginClass#isMainClass()} is true you need to inherit {@link ru.whoisamyy.api.plugins.Plugin}.

* * @see ru.whoisamyy.core.PluginManager * @see PluginManager#initializePlugins() */ @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface PluginClass { String pluginName(); boolean isMainClass() default false; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy