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 java.lang.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 java.util.Map<java.lang.String,T>
pluginsMap
protected java.lang.Class<T>
pluginType
the interface type of plugins managed by this registry
-
Constructor Summary
Constructors Constructor Description DefaultAppPluginRegistry(java.lang.Class<T> pluginType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getPlugin(java.lang.String id)
Returns the registered plugin with the given name ornull
if the plugin does not exist.java.util.List<T>
getPlugins()
Returns all registered pluginsprotected void
loadPlugins()
-
-
-
Constructor Detail
-
DefaultAppPluginRegistry
public DefaultAppPluginRegistry(java.lang.Class<T> pluginType)
-
-
Method Detail
-
loadPlugins
protected void loadPlugins()
-
getPlugins
public java.util.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(java.lang.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:
-
-