ComponentPluginManagerpublic class PluginManager extends Object
| Constructor | Description |
|---|---|
PluginManager(String xmlName,
String mainTag,
String pluginTag) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
Set |
getAvailablePlugins() |
Returns a collection of all available plugins.
|
Set |
getAvailablePlugins(boolean toReload) |
Returns a collection of all available plugins.
|
protected Object |
getPlugin(URL pluginUrl) |
|
protected String |
getPluginClass(URL pluginUrl) |
public PluginManager(String xmlName, String mainTag, String pluginTag)
xmlName - The name of XML file that contains plugin configuration.mainTag - The main tag in the XML configuration file.pluginTag - The tag that corresponds to a single plugin kind. Specifies
the plugin kind that will be located in
getAvailablePlugins(boolean).public Set getAvailablePlugins()
getAvailablePlugins(boolean)public Set getAvailablePlugins(boolean toReload)
toReload - If true, the classpath is scanned for available
plugins every time this function is called. If
false, the classpath scan is performed only once.
The consecutive calls return the cached result.