|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anwrt.anycontent.plugin.AbstractPlugin
Superclass of all plugins, brought either by the kernel or by external means.
This class' purpose is mainly to read plugin.xml files and to build
corresponding Objects.
Do not extends this class, but Plugin instead.
| Field Summary | |
static java.lang.String |
PLUGIN_ID_SEPARATOR
Separator in plugin full id (between pluginName and pluginId) |
| Constructor Summary | |
AbstractPlugin()
|
|
| Method Summary | |
void |
configure(java.lang.String pluginName,
java.lang.String pluginId,
Configuration config)
Standard method for plugin configuration, handling only extensions. |
protected abstract void |
extendedConfigure(Configuration config)
This method may be overriden by subclasses to add specific fonctionnality. |
java.util.Collection |
getExtensions(java.lang.String extensionPoint)
Get the extensions points. |
java.util.Collection |
getExtensionsPoints()
Get the extensions points. |
java.lang.String |
getId()
Return the plugin unique id (concat the plugin name with the plugin's id) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PLUGIN_ID_SEPARATOR
| Constructor Detail |
public AbstractPlugin()
| Method Detail |
public final java.lang.String getId()
public final void configure(java.lang.String pluginName,
java.lang.String pluginId,
Configuration config)
throws ConfigurationException
pluginName - Name of the plugin (of the directory)pluginId - Unique id of the plugin (in the plugin file)config - The plugin configuration
ConfigurationException - if the configuration is not validpublic final java.util.Collection getExtensionsPoints()
public final java.util.Collection getExtensions(java.lang.String extensionPoint)
extensionPoint - The extension point name.
protected abstract void extendedConfigure(Configuration config)
throws ConfigurationException
config - this plugin's configuration
ConfigurationException - if the configuration is not valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||