ch.tatool.core.element.handler.pause
Class PauseHandlerUtil

java.lang.Object
  extended by ch.tatool.core.element.handler.pause.PauseHandlerUtil

public class PauseHandlerUtil
extends Object


Constructor Summary
PauseHandlerUtil()
           
 
Method Summary
static ExecutionPauseHandler findExecutionPauseHandler(ExecutionContext context)
          Finds the deepest ExecutionpauseHandler attached to the current context.
static boolean setCurrentInterElementPauseDuration(ExecutionContext context, long duration)
          Sets the current inter pause duration if an ExecutionHandler can be found, does nothing otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PauseHandlerUtil

public PauseHandlerUtil()
Method Detail

findExecutionPauseHandler

public static ExecutionPauseHandler findExecutionPauseHandler(ExecutionContext context)
Finds the deepest ExecutionpauseHandler attached to the current context.

Parameters:
context - the context to search through
Returns:
a handler or null if none is available

setCurrentInterElementPauseDuration

public static boolean setCurrentInterElementPauseDuration(ExecutionContext context,
                                                          long duration)
Sets the current inter pause duration if an ExecutionHandler can be found, does nothing otherwise.

Returns:
whether the duration was successfully set


Copyright © 2012. All Rights Reserved.