Package org.camunda.bpm.webapp.impl
Class AbstractAppRuntimeDelegate<T extends AppPlugin>
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.AbstractAppRuntimeDelegate<T>
-
- All Implemented Interfaces:
AppRuntimeDelegate<T>
- Direct Known Subclasses:
DefaultAdminRuntimeDelegate
,DefaultCockpitRuntimeDelegate
,DefaultTasklistRuntimeDelegate
,DefaultWelcomeRuntimeDelegate
public abstract class AbstractAppRuntimeDelegate<T extends AppPlugin> extends java.lang.Object implements AppRuntimeDelegate<T>
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected AppPluginRegistry<T>
pluginRegistry
protected ProcessEngineProvider
processEngineProvider
protected java.util.List<PluginResourceOverride>
resourceOverrides
-
Constructor Summary
Constructors Constructor Description AbstractAppRuntimeDelegate(java.lang.Class<T> pluginType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppPluginRegistry<T>
getAppPluginRegistry()
A registry that provides access to the plugins registered in the application.ProcessEngine
getDefaultProcessEngine()
Returns the defaultProcessEngine
provided by theProcessEngine
getProcessEngine(java.lang.String processEngineName)
Returns aProcessEngine
to the assignedprocessEngineName
java.util.Set<java.lang.String>
getProcessEngineNames()
Returns the list ofProcessEngine
names available to the runtimejava.util.List<PluginResourceOverride>
getResourceOverrides()
A list of resource overrides.protected void
initResourceOverrides()
protected ProcessEngineProvider
loadProcessEngineProvider()
Load theProcessEngineProvider
spi implementation.
-
-
-
Field Detail
-
pluginRegistry
protected final AppPluginRegistry<T extends AppPlugin> pluginRegistry
-
processEngineProvider
protected final ProcessEngineProvider processEngineProvider
-
resourceOverrides
protected java.util.List<PluginResourceOverride> resourceOverrides
-
-
Constructor Detail
-
AbstractAppRuntimeDelegate
public AbstractAppRuntimeDelegate(java.lang.Class<T> pluginType)
-
-
Method Detail
-
getProcessEngine
public ProcessEngine getProcessEngine(java.lang.String processEngineName)
Description copied from interface:AppRuntimeDelegate
Returns aProcessEngine
to the assignedprocessEngineName
- Specified by:
getProcessEngine
in interfaceAppRuntimeDelegate<T extends AppPlugin>
- Returns:
- a
ProcessEngine
-
getProcessEngineNames
public java.util.Set<java.lang.String> getProcessEngineNames()
Description copied from interface:AppRuntimeDelegate
Returns the list ofProcessEngine
names available to the runtime- Specified by:
getProcessEngineNames
in interfaceAppRuntimeDelegate<T extends AppPlugin>
- Returns:
-
getDefaultProcessEngine
public ProcessEngine getDefaultProcessEngine()
Description copied from interface:AppRuntimeDelegate
Returns the defaultProcessEngine
provided by the- Specified by:
getDefaultProcessEngine
in interfaceAppRuntimeDelegate<T extends AppPlugin>
- Returns:
-
getAppPluginRegistry
public AppPluginRegistry<T> getAppPluginRegistry()
Description copied from interface:AppRuntimeDelegate
A registry that provides access to the plugins registered in the application.- Specified by:
getAppPluginRegistry
in interfaceAppRuntimeDelegate<T extends AppPlugin>
- Returns:
-
loadProcessEngineProvider
protected ProcessEngineProvider loadProcessEngineProvider()
Load theProcessEngineProvider
spi implementation.- Returns:
-
getResourceOverrides
public java.util.List<PluginResourceOverride> getResourceOverrides()
Description copied from interface:AppRuntimeDelegate
A list of resource overrides.- Specified by:
getResourceOverrides
in interfaceAppRuntimeDelegate<T extends AppPlugin>
- Returns:
- the list of registered resource overrides
-
initResourceOverrides
protected void initResourceOverrides()
-
-