public class WorkflowStrategyService extends ChainedProviderService<WorkflowStrategy> implements DescribableService, PluggableProviderService<WorkflowStrategy>
WorkflowStrategy
Modifier and Type | Method and Description |
---|---|
boolean |
canLoadWithLoader(ProviderLoader loader) |
static WorkflowStrategyService |
getInstanceForFramework(Framework framework) |
java.lang.String |
getName() |
protected java.util.List<ProviderService<WorkflowStrategy>> |
getServiceList() |
WorkflowStrategy |
getStrategyForWorkflow(WorkflowExecutionItem workflow,
java.util.Map<java.lang.String,java.lang.Object> config,
java.lang.String projectName)
Get a configured strategy instance
|
WorkflowStrategy |
getStrategyForWorkflow(WorkflowExecutionItem workflow,
PropertyResolver resolver)
Get a configured strategy instance
|
java.util.List<ProviderIdent> |
listDescribableProviders() |
java.util.List<Description> |
listDescriptions() |
CloseableProvider<WorkflowStrategy> |
loadCloseableWithLoader(java.lang.String providerName,
ProviderLoader loader)
Load a closeable provider with the given loader
|
WorkflowStrategy |
loadWithLoader(java.lang.String providerName,
ProviderLoader loader)
Load provider with the given loader
|
void |
registerClass(java.lang.String name,
java.lang.Class<? extends WorkflowStrategy> clazz) |
void |
registerInstance(java.lang.String name,
WorkflowStrategy object) |
closeableProviderOfType, listProviders, providerOfType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapter
closeableProviderOfType, listProviders, providerOfType
public java.lang.String getName()
getName
in interface FrameworkSupportService
public boolean canLoadWithLoader(ProviderLoader loader)
canLoadWithLoader
in interface PluggableService<WorkflowStrategy>
loader
- loaderProviderLoader.canLoadForService(FrameworkSupportService)
public WorkflowStrategy loadWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
PluggableService
loadWithLoader
in interface PluggableService<WorkflowStrategy>
providerName
- provider nameloader
- loaderProviderLoader.load(PluggableService,
String)
ProviderLoaderException
- if an error occurspublic CloseableProvider<WorkflowStrategy> loadCloseableWithLoader(java.lang.String providerName, ProviderLoader loader) throws ProviderLoaderException
PluggableService
loadCloseableWithLoader
in interface PluggableService<WorkflowStrategy>
providerName
- provider nameloader
- loaderProviderLoader.loadCloseable(PluggableService, String)
ProviderLoaderException
- if an error occursprotected java.util.List<ProviderService<WorkflowStrategy>> getServiceList()
getServiceList
in class ChainedProviderService<WorkflowStrategy>
public static WorkflowStrategyService getInstanceForFramework(Framework framework)
public WorkflowStrategy getStrategyForWorkflow(WorkflowExecutionItem workflow, java.util.Map<java.lang.String,java.lang.Object> config, java.lang.String projectName) throws ExecutionServiceException
workflow
- workflowconfig
- config dataExecutionServiceException
- if provider cannot be loadedpublic WorkflowStrategy getStrategyForWorkflow(WorkflowExecutionItem workflow, PropertyResolver resolver) throws ExecutionServiceException
workflow
- workflowresolver
- config resolverExecutionServiceException
- if provider cannot be loadedpublic java.util.List<Description> listDescriptions()
listDescriptions
in interface DescribableService
public java.util.List<ProviderIdent> listDescribableProviders()
listDescribableProviders
in interface DescribableService
public void registerClass(java.lang.String name, java.lang.Class<? extends WorkflowStrategy> clazz)
public void registerInstance(java.lang.String name, WorkflowStrategy object)