|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.managers.plugin.Plugin<T>
public abstract class Plugin<T extends Plugin<T>>
Base class for any plugin.
You still might want to use AbstractPlugin
instead as it has some basic plugin methods.
PluginManager
Field Summary | |
---|---|
protected DetectedPlugin<T> |
detectedPlugin
Detected plugin information. |
protected boolean |
enabled
Whether this plugin is enabled or not. |
protected InitializationStrategy |
initializationStrategy
Cached plugin initialization strategy. |
protected PluginManager<T> |
pluginManager
Plugin manager which loaded this plugin. |
Constructor Summary | |
---|---|
Plugin()
|
Method Summary | |
---|---|
protected InitializationStrategy |
createInitializationStrategy()
Creates and returns plugin initialization strategy. |
void |
disable()
Disables plugin runtime actions. |
protected void |
disabled()
This method called when plugin is disabled. |
void |
enable()
Enables plugin runtime actions. |
protected void |
enabled()
This method called when plugin is re-enabled. |
java.lang.String |
getDescription()
Returns plugin description. |
DetectedPlugin<T> |
getDetectedPlugin()
Returns additional information about this plugin. |
java.lang.String |
getId()
Returns plugin ID. |
InitializationStrategy |
getInitializationStrategy()
Returns plugin initialization strategy. |
java.util.List<PluginLibrary> |
getLibraries()
Returns plugin libraries list. |
java.lang.String |
getMainClass()
Returns plugin main class. |
PluginInformation |
getPluginInformation()
Returns information about this plugin. |
javax.swing.ImageIcon |
getPluginLogo()
Returns plugin logo. |
PluginManager<T> |
getPluginManager()
Returns plugin manager which loaded this plugin. |
java.lang.String |
getTitle()
Returns plugin title. |
java.lang.String |
getType()
Returns plugin type. |
java.lang.String |
getTypes()
Returns plugin types. |
PluginVersion |
getVersion()
Returns plugin version information. |
boolean |
isDisableable()
Says whether plugin can be disabled in runtime or not. |
boolean |
isEnabled()
Returns whether this plugin is enabled or not. |
protected void |
setDetectedPlugin(DetectedPlugin<T> detectedPlugin)
Sets additional information about this plugin. |
void |
setEnabled(boolean enabled)
Sets whether this plugin should be enabled or not. |
protected void |
setPluginManager(PluginManager<T> pluginManager)
Sets plugin manager which loaded this plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PluginManager<T extends Plugin<T>> pluginManager
protected DetectedPlugin<T extends Plugin<T>> detectedPlugin
protected InitializationStrategy initializationStrategy
protected boolean enabled
Constructor Detail |
---|
public Plugin()
Method Detail |
---|
public PluginManager<T> getPluginManager()
protected void setPluginManager(PluginManager<T> pluginManager)
pluginManager
- plugin manager which loaded this pluginpublic DetectedPlugin<T> getDetectedPlugin()
protected void setDetectedPlugin(DetectedPlugin<T> detectedPlugin)
detectedPlugin
- additional information about this pluginpublic PluginInformation getPluginInformation()
public javax.swing.ImageIcon getPluginLogo()
public java.lang.String getId()
public java.lang.String getType()
public java.lang.String getTypes()
public boolean isDisableable()
public java.lang.String getMainClass()
public java.lang.String getTitle()
public java.lang.String getDescription()
public PluginVersion getVersion()
public java.util.List<PluginLibrary> getLibraries()
public InitializationStrategy getInitializationStrategy()
protected InitializationStrategy createInitializationStrategy()
public final void disable()
protected void disabled()
public final void enable()
protected void enabled()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- whether this plugin should be enabled or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |