public class ResultLogger extends Object
ResultEvent
) if the event's
Environment is enabled.Modifier and Type | Method and Description |
---|---|
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.
|
public static ResultLogger getInstance()
public void addListener(ResultListener resultListener)
ResultListener
see logResultresultListener
- ResultListener
to addpublic void removeListener(ResultListener resultListener)
ResultListener
resultListener
- ResultListener
to removepublic void logResult(ResultEvent event)
event
- ResultEvent
to invoke with listeners handleEvent if the event's Environment is enabled.public boolean isEnabled(ExecutionEnvironment environment)
ExecutionEnvironment
's execution options ExecutionFlag.LOG_EXECUTION
flag has been set.environment
- ExecutionEnvironment
to test for being enabled.Copyright © 2005–2014 The Kuali Foundation. All rights reserved.