org.camunda.bpm.webapp.plugin.impl
Class DefaultAppPluginRegistry<T extends AppPlugin>

java.lang.Object
  extended by 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 of AppPluginRegistry that loads Plugins via the ServiceLoader facilities provided by the Java SE platform.

Author:
nico.rehwaldt, Daniel Meyer

Field Summary
protected  Map<String,T> pluginsMap
           
protected  Class<T> pluginType
          the interface type of plugins managed by this registry
 
Constructor Summary
DefaultAppPluginRegistry(Class<T> pluginType)
           
 
Method Summary
 T getPlugin(String id)
          Returns the registered plugin with the given name or null if the plugin does not exist.
 List<T> getPlugins()
          Returns all registered plugins
protected  void loadPlugins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginType

protected final Class<T extends AppPlugin> pluginType
the interface type of plugins managed by this registry


pluginsMap

protected Map<String,T extends AppPlugin> pluginsMap
Constructor Detail

DefaultAppPluginRegistry

public DefaultAppPluginRegistry(Class<T> pluginType)
Method Detail

loadPlugins

protected void loadPlugins()

getPlugins

public List<T> getPlugins()
Description copied from interface: AppPluginRegistry
Returns all registered plugins

Specified by:
getPlugins in interface AppPluginRegistry<T extends AppPlugin>
Returns:

getPlugin

public T getPlugin(String id)
Description copied from interface: AppPluginRegistry
Returns the registered plugin with the given name or null if the plugin does not exist.

Specified by:
getPlugin in interface AppPluginRegistry<T extends AppPlugin>
Returns:


Copyright © 2018 camunda services GmbH. All rights reserved.