Package dev.dsf.bpe.camunda
Class DelegateProviderImpl
java.lang.Object
dev.dsf.bpe.camunda.DelegateProviderImpl
- All Implemented Interfaces:
DelegateProvider,ProcessPluginConsumer,org.springframework.beans.factory.InitializingBean
public class DelegateProviderImpl
extends Object
implements DelegateProvider, ProcessPluginConsumer, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
ConstructorsConstructorDescriptionDelegateProviderImpl(ClassLoader mainClassLoader, org.springframework.context.ApplicationContext mainApplicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.context.ApplicationContextgetApplicationContext(ProcessIdAndVersion processIdAndVersion) getClassLoader(ProcessIdAndVersion processIdAndVersion) Class<? extends org.camunda.bpm.engine.delegate.TaskListener>getDefaultUserTaskListenerClass(String processPluginApiVersion) voidsetProcessPlugins(List<ProcessPlugin<?, ?>> plugins)
-
Constructor Details
-
DelegateProviderImpl
public DelegateProviderImpl(ClassLoader mainClassLoader, org.springframework.context.ApplicationContext mainApplicationContext)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setProcessPlugins
- Specified by:
setProcessPluginsin interfaceProcessPluginConsumer
-
getClassLoader
- Specified by:
getClassLoaderin interfaceDelegateProvider- Parameters:
processIdAndVersion- notnull- Returns:
- returns the default class loader if no special class loader is registered for the given processIdAndVersion
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext(ProcessIdAndVersion processIdAndVersion) - Specified by:
getApplicationContextin interfaceDelegateProvider- Parameters:
processIdAndVersion- notnull- Returns:
- returns the default application context if no special application context is registered for the given processIdAndVersion
-
getDefaultUserTaskListenerClass
public Class<? extends org.camunda.bpm.engine.delegate.TaskListener> getDefaultUserTaskListenerClass(String processPluginApiVersion) - Specified by:
getDefaultUserTaskListenerClassin interfaceDelegateProvider- Parameters:
processPluginApiVersion- notnull- Returns:
- the default user task listener class for the given process plugin api version
-