Class DefaultAppPluginRegistry<T extends AppPlugin>
- java.lang.Object
-
- org.camunda.bpm.webapp.plugin.impl.DefaultAppPluginRegistry<T>
-
- All Implemented Interfaces:
AppPluginRegistry<T>
public class DefaultAppPluginRegistry<T extends AppPlugin> extends Object implements AppPluginRegistry<T>
Default implementation ofAppPluginRegistry
that loads Plugins via theServiceLoader
facilities provided by the Java SE platform.- Author:
- nico.rehwaldt, Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,T>
pluginsMap
protected Class<T>
pluginType
the interface type of plugins managed by this registry
-
Constructor Summary
Constructors Constructor Description DefaultAppPluginRegistry(Class<T> pluginType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getPlugin(String id)
Returns the registered plugin with the given name ornull
if the plugin does not exist.List<T>
getPlugins()
Returns all registered pluginsprotected void
loadPlugins()
-
-
-
Method Detail
-
loadPlugins
protected void loadPlugins()
-
getPlugins
public List<T> getPlugins()
Description copied from interface:AppPluginRegistry
Returns all registered plugins- Specified by:
getPlugins
in interfaceAppPluginRegistry<T extends AppPlugin>
- Returns:
-
getPlugin
public T getPlugin(String id)
Description copied from interface:AppPluginRegistry
Returns the registered plugin with the given name ornull
if the plugin does not exist.- Specified by:
getPlugin
in interfaceAppPluginRegistry<T extends AppPlugin>
- Returns:
-
-