ch.tatool.app.service.exec.impl
Class ExecutionServiceImpl

java.lang.Object
  extended by ch.tatool.app.service.exec.impl.ExecutionServiceImpl
All Implemented Interfaces:
ExecutionService

public class ExecutionServiceImpl
extends Object
implements ExecutionService

Execution service implementation. Creates and manages module executions.

Author:
Michael Ruflin

Constructor Summary
ExecutionServiceImpl()
          Constructor.
 
Method Summary
 boolean canExecute(Module module)
          Returns whether a module can be executed.
 Executor createExecutor(Module module)
          Initializes the executor.
 PhaseListenerManager getPhaseListenerManager()
          Get the PhaseListener manager object that can be used to add new listeners to the service.
 void setDataService(DataService dataService)
           
 void startExecution(Executor executor, boolean blockCallerThread)
          Executes the executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionServiceImpl

public ExecutionServiceImpl()
Constructor.

Method Detail

canExecute

public boolean canExecute(Module module)
Returns whether a module can be executed.

Specified by:
canExecute in interface ExecutionService

createExecutor

public Executor createExecutor(Module module)
Description copied from interface: ExecutionService
Initializes the executor.

Specified by:
createExecutor in interface ExecutionService

startExecution

public void startExecution(Executor executor,
                           boolean blockCallerThread)
Executes the executor.

Specified by:
startExecution in interface ExecutionService

getPhaseListenerManager

public PhaseListenerManager getPhaseListenerManager()
Description copied from interface: ExecutionService
Get the PhaseListener manager object that can be used to add new listeners to the service.

Specified by:
getPhaseListenerManager in interface ExecutionService

setDataService

public void setDataService(DataService dataService)


Copyright © 2012. All Rights Reserved.