@Api public interface WorkflowComponentRegistry
Modifier and Type | Method and Description |
---|---|
ActionDefinition |
getAction(String id)
Returns action with given id or null if action is not registered.
|
List<ActionDefinition> |
getActions()
Returns all registered actions.
|
Class<?> |
getActionSourceClass(String id)
Returns source class of action with given id.
|
Application |
getApplication(String id)
Returns application with given id or null if application is not registered.
|
List<Application> |
getApplications()
Returns all registered applications.
|
Class<?> |
getComponentSourceClass(WorkflowComponent definition)
Returns source class of given component.
|
DataChooser |
getDataChooser(String id)
Returns datachooser with given id or null if datachooser is not registered.
|
List<DataChooser> |
getDataChoosers()
Returns all registered datachoosers.
|
InvocableDataSource |
getDataSource(Class<?> clazz)
Returns data source with given class or null if data source is not registered.
|
InvocableDataSource |
getDataSource(String id)
Returns data source with given id or null if data source is not registered.
|
Class<?> |
getDataSourceClass(String id)
Returns source class of data source with given id.
|
List<InvocableDataSource> |
getDataSources()
Returns all registered data sources.
|
ScheduledTask |
getScheduledTask(Class<?> clazz)
Returns scheduled task with given class or null if scheduled task is not registered.
|
ScheduledTask |
getScheduledTask(String id)
Returns scheduled task with given id or null if scheduled task is not registered.
|
List<ScheduledTask> |
getScheduledTasks()
Returns all registered scheduled tasks.
|
Validator |
getValidator(String id)
Returns validator with given id or null if validator is not registered.
|
List<Validator> |
getValidators()
Returns all registered validators.
|
Class<?> |
getValidatorSourceClass(String id)
Returns source class of validator with given id.
|
VariableSetter |
getVariableSetter(String id)
Returns variable setter with given id or null if variable setter is not registered.
|
List<VariableSetter> |
getVariableSetters()
Returns all registered variable setters.
|
void |
registerComponent(WorkflowComponent component,
Class<?> sourceClass)
Registers given component.
|
RegistrationSummary |
registerComponents(ComponentDiscovery strategy,
InstanceFactory instanceFactory,
ComponentSource source)
Registers all components found by given strategy.
|
void |
unregisterAction(String id)
Removes action with given id from registry.
|
void |
unregisterApplication(String id)
Removes application with given id from registry.
|
void |
unregisterComponent(WorkflowComponent component)
Removes given component from registry.
|
void |
unregisterDataChooser(String id)
Removes datachooser with given id from registry.
|
void |
unregisterDataSource(String id)
Removes data source with given id from registry.
|
void |
unregisterScheduledTask(String id)
Removes scheduled task with given id from registry.
|
void |
unregisterValidator(String id)
Removes validator with given id from registry.
|
void |
unregisterVariableSetter(String id)
Removes variable setter with given id from registry.
|
RegistrationSummary registerComponents(ComponentDiscovery strategy, InstanceFactory instanceFactory, ComponentSource source)
strategy
- Component's search strategy.instanceFactory
- Instance factory that should me used to create components instancesvoid registerComponent(WorkflowComponent component, Class<?> sourceClass)
component
- Component to register.void unregisterComponent(WorkflowComponent component)
component
- Component to remove.void unregisterAction(String id)
id
- Id of action to remove.ActionDefinition getAction(String id)
id
- Id of actionList<ActionDefinition> getActions()
Class<?> getActionSourceClass(String id)
id
- Id of actionvoid unregisterValidator(String id)
id
- Id of validator to remove.Validator getValidator(String id)
id
- Id of validatorList<Validator> getValidators()
Class<?> getValidatorSourceClass(String id)
id
- Id of validatorvoid unregisterVariableSetter(String id)
id
- Id of variable setter to remove.VariableSetter getVariableSetter(String id)
id
- Id of variable setterList<VariableSetter> getVariableSetters()
void unregisterApplication(String id)
id
- Id of application to remove.Application getApplication(String id)
id
- Id of applicationList<Application> getApplications()
void unregisterDataChooser(String id)
id
- Id of datachooser to remove.DataChooser getDataChooser(String id)
id
- Id of datachooserList<DataChooser> getDataChoosers()
void unregisterScheduledTask(String id)
id
- Id of scheduled task to remove.ScheduledTask getScheduledTask(String id)
id
- Id of scheduled taskScheduledTask getScheduledTask(Class<?> clazz)
clazz
- List<ScheduledTask> getScheduledTasks()
void unregisterDataSource(String id)
id
- Id of data source to remove.InvocableDataSource getDataSource(String id)
id
- Id of data sourceInvocableDataSource getDataSource(Class<?> clazz)
clazz
- List<InvocableDataSource> getDataSources()
Class<?> getDataSourceClass(String id)
id
- Id of data sourceClass<?> getComponentSourceClass(WorkflowComponent definition)
definition
- ComponentCopyright © 2019 Suncode. All rights reserved.