public class DefaultPluginRegistry extends Object implements PluginRegistry
PluginRegistry
that loads plugins
via the ServiceLoader
.Constructor and Description |
---|
DefaultPluginRegistry() |
Modifier and Type | Method and Description |
---|---|
CockpitPlugin |
getPlugin(String id)
Returns the registered plugin with the given name or
null if the plugin does not exist. |
List<CockpitPlugin> |
getPlugins()
Returns all registered plugins
|
protected void |
loadPlugins() |
protected void loadPlugins()
public List<CockpitPlugin> getPlugins()
PluginRegistry
getPlugins
in interface PluginRegistry
public CockpitPlugin getPlugin(String id)
PluginRegistry
null
if the plugin does not exist.getPlugin
in interface PluginRegistry
Copyright © 2015. All rights reserved.