org.camunda.bpm.webapp.plugin.impl
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 of AppPluginRegistry that loads Plugins
via the ServiceLoader facilities provided by the Java SE platform.
- Author:
- nico.rehwaldt, Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DefaultAppPluginRegistry
public DefaultAppPluginRegistry(Class<T> pluginType)
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.