org.jasig.portal.tools.checks
Class SafeCheckRunner

java.lang.Object
  extended by org.jasig.portal.tools.checks.SafeCheckRunner
All Implemented Interfaces:
ICheckRunner

public class SafeCheckRunner
extends Object
implements ICheckRunner

Runs a list of IChecks with type checking and exception handling to ensure every check gets run and that the doChecks() will always return correctly.

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
SafeCheckRunner()
           
 
Method Summary
 List<CheckAndResult> doChecks()
          Execute some checks and return a List of CheckAndResult instances representing the results.
 List<?> getChecks()
           
 void setChecks(List<?> checks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

SafeCheckRunner

public SafeCheckRunner()
Method Detail

getChecks

public List<?> getChecks()
Returns:
the checks

setChecks

public void setChecks(List<?> checks)
Parameters:
checks - the checks to set

doChecks

public List<CheckAndResult> doChecks()
Description copied from interface: ICheckRunner
Execute some checks and return a List of CheckAndResult instances representing the results.

Specified by:
doChecks in interface ICheckRunner
Returns:
a List of CheckAndResult instances.


Copyright © 2010 Jasig. All Rights Reserved.