com.bareflow
Interface IModule


public interface IModule

This interface represents a module. Module instances are created using ModuleFactory

See Also:
ModuleFactory

Method Summary
 IRuntimeFactory getRuntimeFactory()
          Returns a runtime factory associated with this module.
 void run()
          Runs this module
 void run(IRuntimeContext ctx)
          Runs this module in the given runtime context
 

Method Detail

run

void run()
         throws BareflowException
Runs this module

Throws:
BareflowException - if module fails to run

run

void run(IRuntimeContext ctx)
         throws BareflowException
Runs this module in the given runtime context

Parameters:
ctx - runtime context
Throws:
BareflowException - if module fails to run

getRuntimeFactory

IRuntimeFactory getRuntimeFactory()
Returns a runtime factory associated with this module.

Returns:
a runtime factory associated with this module.