Interface WorkflowComponentRegistry
Registry for workflow components.
- Author:
- RafaĆ Nowacki 16 cze 2016
-
Method Summary
Modifier and TypeMethodDescriptionReturns action with given id or null if action is not registered.Returns all registered actions.Class<?>
Returns source class of action with given id.getApplication
(String id) Returns application with given id or null if application is not registered.Returns all registered applications.Class<?>
getComponentSourceClass
(WorkflowComponent definition) Returns source class of given component.getDataChooser
(String id) Returns datachooser with given id or null if datachooser is not registered.Returns all registered datachoosers.getDataSource
(Class<?> clazz) Returns data source with given class or null if data source is not registered.getDataSource
(String id) Returns data source with given id or null if data source is not registered.Class<?>
Returns source class of data source with given id.Returns all registered data sources.getEventAction
(String id) Returns event action with given idReturns all registered event actions.getScheduledTask
(Class<?> clazz) Returns scheduled task with given class or null if scheduled task is not registered.Returns scheduled task with given id or null if scheduled task is not registered.Class<?>
Returns source class of scheduled task with given id.Returns all registered scheduled tasks.getValidator
(String id) Returns validator with given id or null if validator is not registered.Returns all registered validators.Class<?>
Returns source class of validator with given id.Returns variable setter with given id or null if variable setter is not registered.Returns all registered variable setters.void
registerComponent
(WorkflowComponent component, Class<?> sourceClass) Registers given component.registerComponents
(ComponentDiscovery strategy, InstanceFactory instanceFactory, ComponentSource source) Registers all components found by given strategy.void
Removes action with given id from registry.void
Removes application with given id from registry.void
unregisterComponent
(WorkflowComponent component) Removes given component from registry.void
unregisterComponents
(ComponentSource componentSource) Removes every component registered under givenComponentSource
from registry.void
Removes datachooser with given id from registry.void
Removes data source with given id from registry.void
Removes scheduled task with given id from registry.void
Removes validator with given id from registry.void
Removes variable setter with given id from registry.
-
Method Details
-
registerComponents
RegistrationSummary registerComponents(ComponentDiscovery strategy, InstanceFactory instanceFactory, ComponentSource source) Registers all components found by given strategy.- Parameters:
strategy
- Component's search strategy.instanceFactory
- Instance factory that should me used to create components instances- Returns:
- Summary of registration containing list of registered components and another list of components which could not be registered.
-
registerComponent
Registers given component.- Parameters:
component
- Component to register.
-
unregisterComponent
Removes given component from registry.- Parameters:
component
- Component to remove.
-
unregisterComponents
Removes every component registered under givenComponentSource
from registry.- Parameters:
componentSource
- source used during registration
-
unregisterAction
Removes action with given id from registry.- Parameters:
id
- Id of action to remove.
-
getAction
Returns action with given id or null if action is not registered.- Parameters:
id
- Id of action
-
getActions
List<ActionDefinition> getActions()Returns all registered actions. If no action has been registered then empty list is returned. -
getEventAction
Returns event action with given id -
getEventActions
List<EventActionDefinition> getEventActions()Returns all registered event actions. -
getActionSourceClass
Returns source class of action with given id.- Parameters:
id
- Id of action
-
unregisterValidator
Removes validator with given id from registry.- Parameters:
id
- Id of validator to remove.
-
getValidator
Returns validator with given id or null if validator is not registered.- Parameters:
id
- Id of validator
-
getValidators
Returns all registered validators. If no validator has been registered then empty list is returned. -
getValidatorSourceClass
Returns source class of validator with given id.- Parameters:
id
- Id of validator
-
unregisterVariableSetter
Removes variable setter with given id from registry.- Parameters:
id
- Id of variable setter to remove.
-
getVariableSetter
Returns variable setter with given id or null if variable setter is not registered.- Parameters:
id
- Id of variable setter
-
getVariableSetters
List<VariableSetter> getVariableSetters()Returns all registered variable setters. If no variable setter has been registered then empty list is returned. -
unregisterApplication
Removes application with given id from registry.- Parameters:
id
- Id of application to remove.
-
getApplication
Returns application with given id or null if application is not registered.- Parameters:
id
- Id of application
-
getApplications
List<Application> getApplications()Returns all registered applications. If no application has been registered then empty list is returned. -
unregisterDataChooser
Removes datachooser with given id from registry.- Parameters:
id
- Id of datachooser to remove.
-
getDataChooser
Returns datachooser with given id or null if datachooser is not registered.- Parameters:
id
- Id of datachooser
-
getDataChoosers
List<DataChooser> getDataChoosers()Returns all registered datachoosers. If no datachooser has been registered then empty list is returned. -
unregisterScheduledTask
Removes scheduled task with given id from registry.- Parameters:
id
- Id of scheduled task to remove.
-
getScheduledTask
Returns scheduled task with given id or null if scheduled task is not registered.- Parameters:
id
- Id of scheduled task
-
getScheduledTask
Returns scheduled task with given class or null if scheduled task is not registered.- Parameters:
clazz
-- Returns:
-
getScheduledTaskClass
Returns source class of scheduled task with given id.- Parameters:
id
- Id of scheduled task
-
getScheduledTasks
List<ScheduledTask> getScheduledTasks()Returns all registered scheduled tasks. If no scheduled task has been registered then empty list is returned. -
unregisterDataSource
Removes data source with given id from registry.- Parameters:
id
- Id of data source to remove.
-
getDataSource
Returns data source with given id or null if data source is not registered.- Parameters:
id
- Id of data source
-
getDataSource
Returns data source with given class or null if data source is not registered.- Parameters:
clazz
-- Returns:
-
getDataSources
List<InvocableDataSource> getDataSources()Returns all registered data sources. If no data source has been registered then empty list is returned. -
getDataSourceClass
Returns source class of data source with given id.- Parameters:
id
- Id of data source
-
getComponentSourceClass
Returns source class of given component.- Parameters:
definition
- Component- Returns:
- Component source class
-