Package org.jvnet.lafplugin
Class PluginManager
- java.lang.Object
-
- org.jvnet.lafplugin.PluginManager
-
- Direct Known Subclasses:
ComponentPluginManager
public class PluginManager extends java.lang.ObjectPlugin manager for look-and-feels.
-
-
Constructor Summary
Constructors Constructor Description PluginManager(java.lang.String xmlName, java.lang.String mainTag, java.lang.String pluginTag)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.SetgetAvailablePlugins()Returns a collection of all available plugins.java.util.SetgetAvailablePlugins(boolean toReload)Returns a collection of all available plugins.
-
-
-
Constructor Detail
-
PluginManager
public PluginManager(java.lang.String xmlName, java.lang.String mainTag, java.lang.String pluginTag)Simple constructor.- Parameters:
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 ingetAvailablePlugins(boolean).
-
-
Method Detail
-
getAvailablePlugins
public java.util.Set getAvailablePlugins()
Returns a collection of all available plugins.- Returns:
- Collection of all available plugins. The classpath is scanned only once.
- See Also:
getAvailablePlugins(boolean)
-
getAvailablePlugins
public java.util.Set getAvailablePlugins(boolean toReload)
Returns a collection of all available plugins. The parameter specifies whether the classpath should be rescanned or whether to return the already found plugins (after first-time scan).- Parameters:
toReload- Iftrue, the classpath is scanned for available plugins every timethisfunction is called. Iffalse, the classpath scan is performed only once. The consecutive calls return the cached result.- Returns:
- Collection of all available plugins.
-
-