Executor

Helper class that allows you to execute one or more components.

Description

The Executor class allows you to execute one or more components.

Static methods

execute

Executes multiple components.

To be executed, components must implement the IExecutable interface. If they don’t, the call to this method has no effect.
See IExecutable, Parameters.

public static List execute(IContext context, Iterable components, Parameters args)

  • context: IContext - (optional) execution context to trace execution through call chain.
  • components: Iterable - list of components that are to be executed.
  • args: Parameters - execution arguments.
  • returns: List - execution result

    executeOne

    Executes a specific component.

    To be executed, components must implement the IExecutable interface. If they don’t, the call to this method has no effect.

    public static Object executeOne(IContext context, Object component, Parameters args)

    • context: IContext - (optional) execution context to trace execution through call chain.
    • component: Object - component that is to be executed.
    • args: Parameters - execution arguments.
    • returns: Object - execution result.

    See also