Interface WorkflowComponentRegistry


@Api public interface WorkflowComponentRegistry
Registry for workflow components.
Author:
RafaƂ Nowacki 16 cze 2016
  • 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

      void registerComponent(WorkflowComponent component, Class<?> sourceClass)
      Registers given component.
      Parameters:
      component - Component to register.
    • unregisterComponent

      void unregisterComponent(WorkflowComponent component)
      Removes given component from registry.
      Parameters:
      component - Component to remove.
    • unregisterComponents

      void unregisterComponents(ComponentSource componentSource)
      Removes every component registered under given ComponentSource from registry.
      Parameters:
      componentSource - source used during registration
    • unregisterAction

      void unregisterAction(String id)
      Removes action with given id from registry.
      Parameters:
      id - Id of action to remove.
    • getAction

      ActionDefinition getAction(String id)
      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

      Optional<EventActionDefinition> getEventAction(String id)
      Returns event action with given id
    • getEventActions

      List<EventActionDefinition> getEventActions()
      Returns all registered event actions.
    • getActionSourceClass

      Class<?> getActionSourceClass(String id)
      Returns source class of action with given id.
      Parameters:
      id - Id of action
    • unregisterValidator

      void unregisterValidator(String id)
      Removes validator with given id from registry.
      Parameters:
      id - Id of validator to remove.
    • getValidator

      Validator getValidator(String id)
      Returns validator with given id or null if validator is not registered.
      Parameters:
      id - Id of validator
    • getValidators

      List<Validator> getValidators()
      Returns all registered validators. If no validator has been registered then empty list is returned.
    • getValidatorSourceClass

      Class<?> getValidatorSourceClass(String id)
      Returns source class of validator with given id.
      Parameters:
      id - Id of validator
    • unregisterVariableSetter

      void unregisterVariableSetter(String id)
      Removes variable setter with given id from registry.
      Parameters:
      id - Id of variable setter to remove.
    • getVariableSetter

      VariableSetter getVariableSetter(String id)
      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

      void unregisterApplication(String id)
      Removes application with given id from registry.
      Parameters:
      id - Id of application to remove.
    • getApplication

      Application getApplication(String id)
      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

      void unregisterDataChooser(String id)
      Removes datachooser with given id from registry.
      Parameters:
      id - Id of datachooser to remove.
    • getDataChooser

      DataChooser getDataChooser(String id)
      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

      void unregisterScheduledTask(String id)
      Removes scheduled task with given id from registry.
      Parameters:
      id - Id of scheduled task to remove.
    • getScheduledTask

      ScheduledTask getScheduledTask(String id)
      Returns scheduled task with given id or null if scheduled task is not registered.
      Parameters:
      id - Id of scheduled task
    • getScheduledTask

      ScheduledTask getScheduledTask(Class<?> clazz)
      Returns scheduled task with given class or null if scheduled task is not registered.
      Parameters:
      clazz -
      Returns:
    • getScheduledTaskClass

      Class<?> getScheduledTaskClass(String id)
      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

      void unregisterDataSource(String id)
      Removes data source with given id from registry.
      Parameters:
      id - Id of data source to remove.
    • getDataSource

      InvocableDataSource getDataSource(String id)
      Returns data source with given id or null if data source is not registered.
      Parameters:
      id - Id of data source
    • getDataSource

      InvocableDataSource getDataSource(Class<?> clazz)
      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

      Class<?> getDataSourceClass(String id)
      Returns source class of data source with given id.
      Parameters:
      id - Id of data source
    • getComponentSourceClass

      Class<?> getComponentSourceClass(WorkflowComponent definition)
      Returns source class of given component.
      Parameters:
      definition - Component
      Returns:
      Component source class