Package com.techcognita.javachatx.plugin
Class BasePlugin
java.lang.Object
com.techcognita.javachatx.plugin.BasePlugin
- All Implemented Interfaces:
Plugin
- Direct Known Subclasses:
EchoPlugin
Base implementation of the Plugin interface.
Provides common functionality for all plugins in the JavaChatX framework.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.gson.JsonObject configuration) Configure the plugin with specific settings.getId()Get the unique identifier for this plugin.getName()Get the name of this plugin.booleanisReady()Check if the plugin is properly configured and ready to use.toString()
-
Field Details
-
id
-
name
-
configuration
protected com.google.gson.JsonObject configuration -
ready
protected boolean ready
-
-
Constructor Details
-
BasePlugin
-
-
Method Details
-
getId
Description copied from interface:PluginGet the unique identifier for this plugin. -
getName
Description copied from interface:PluginGet the name of this plugin. -
configure
public void configure(com.google.gson.JsonObject configuration) Description copied from interface:PluginConfigure the plugin with specific settings. -
isReady
public boolean isReady()Description copied from interface:PluginCheck if the plugin is properly configured and ready to use. -
toString
-