org.kuali.rice.krms.framework.engine
Class ResultLogger

java.lang.Object
  extended by org.kuali.rice.krms.framework.engine.ResultLogger

public class ResultLogger
extends Object

A ResultLogger which invokes its listener's handleEvent method (passing in the ResultEvent) if the event's Environment is enabled.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void addListener(ResultListener resultListener)
          Add a ResultListener see logResult
static ResultLogger getInstance()
           
 boolean isEnabled(ExecutionEnvironment environment)
          Returns true if the ExecutionEnvironment's execution options ExecutionFlag.LOG_EXECUTION flag has been set.
 void logResult(ResultEvent event)
          Invoke the handleEvent method of the listeners if the event's Environment is enabled.
 void removeListener(ResultListener resultListener)
          Be kind, please rewind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ResultLogger getInstance()
Returns:
KRMSLoggerLoader.INSTANCE

addListener

public void addListener(ResultListener resultListener)
Add a ResultListener see logResult

Parameters:
resultListener - ResultListener to add

removeListener

public void removeListener(ResultListener resultListener)
Be kind, please rewind. $1 charge for removing un-removed ResultListener

Parameters:
resultListener - ResultListener to remove

logResult

public void logResult(ResultEvent event)
Invoke the handleEvent method of the listeners if the event's Environment is enabled.

Parameters:
event - ResultEvent to invoke with listeners handleEvent if the event's Environment is enabled.

isEnabled

public boolean isEnabled(ExecutionEnvironment environment)
Returns true if the ExecutionEnvironment's execution options ExecutionFlag.LOG_EXECUTION flag has been set.

Parameters:
environment - ExecutionEnvironment to test for being enabled.
Returns:


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.