Package dk.gtz.graphedit.spi
Interface IPluginsContainer
public interface IPluginsContainer
Interface for a container of
IPlugins
Can be used as a builder-pattern.-
Method Summary
Modifier and TypeMethodDescriptionAdd a single plugin to the containerAdd a list of plugins to the containerAdd a list of plugins to the containervoidclear()Clear the container of all pluginsGet a plugin from the container based on the plugin nameGet a collection of plugins filtered such that it only contains the enabled pluginsGet the underlying collection of pluginsRemove a plugin from the container
-
Method Details
-
add
Add a single plugin to the container- Parameters:
plugin- The plugin to add- Returns:
- A builder-pattern style reference to this
-
add
Add a list of plugins to the container- Parameters:
plugins- A list of plugins to add- Returns:
- A builder-pattern style reference to this
-
add
Add a list of plugins to the container- Parameters:
plugins- Varargs of plugins to add- Returns:
- A builder-pattern style reference to this
-
remove
Remove a plugin from the container- Parameters:
plugin- The plugin to remove- Returns:
- A builder-pattern style reference to this
-
get
Get a plugin from the container based on the plugin name- Parameters:
name- TheIPlugin.getName()to look for- Returns:
- The
IPlugininstance if the plugin is present, empty otherwise
-
getPlugins
Collection<IPlugin> getPlugins()Get the underlying collection of plugins- Returns:
- The underlying collection of plugins
-
getEnabledPlugins
Collection<IPlugin> getEnabledPlugins()Get a collection of plugins filtered such that it only contains the enabled plugins- Returns:
- A collection of the enabled plugins
-
clear
void clear()Clear the container of all plugins
-