|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.framework.engine.ResultLogger
public class ResultLogger
A ResultLogger which invokes its listener's handleEvent method (passing in the ResultEvent
) if the event's
Environment is enabled.
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 |
---|
public static ResultLogger getInstance()
public void addListener(ResultListener resultListener)
ResultListener
see logResult
resultListener
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |