Package top.focess.qq.api.plugin
Class LazyPlugin
- java.lang.Object
-
- top.focess.qq.api.plugin.Plugin
-
- top.focess.qq.api.plugin.LazyPlugin
-
- All Implemented Interfaces:
Serializable,top.focess.util.serialize.FocessSerializable
public abstract class LazyPlugin extends Plugin
This is lazy version of the plugin. Do not need to implementPlugin.enable()andPlugin.disable()- See Also:
Plugin, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyPlugin()Initialize a Plugin instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Used to save some data of the pluginvoidenable()Used to initialize the plugin-
Methods inherited from class top.focess.qq.api.plugin.Plugin
deserialize, equals, getAuthor, getDefaultConfig, getDefaultFolder, getFile, getLangConfig, getName, getPlugin, getPlugin, getPluginDescription, getPlugins, getVersion, hashCode, initialize, isEnabled, isInitialized, loadResource, onDisable, onEnable, plugin, registerBuffer, registerCommand, registerListener, registerSpecialArgumentComplexHandler, serialize, thisPlugin, unload
-
-
-
-
Constructor Detail
-
LazyPlugin
public LazyPlugin()
Initialize a Plugin instance. Never instance it! It will be instanced when bot bootstraps automatically.- Throws:
PluginLoaderException- if the classloader of the plugin is notPluginClassLoaderand the plugin is not the MainPlugin.PluginDuplicateException- if the plugin is already loadedIllegalStateException- if the plugin is newed in runtime
-
-