|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.controller.ControllerInstallLog
This is an implementation of the IntallLog interface that is
useful when running installation systems inside controllers. It renders the
log messages as a series of outputs with the following rules:
InstallLog,
ConsoleInstallLog| Field Summary | |
protected Block |
parentBlock
|
protected ControllerResponse |
response
|
| Constructor Summary | |
protected |
ControllerInstallLog()
The point is that we don't want the default constructor used. |
|
ControllerInstallLog(ControllerResponse theResponse)
Constructs a ControllerInstallLog and sets the ControllerResponse that we will be using to add the outputs to. |
| Method Summary | |
protected void |
addNestedOutputs(Output o,
Throwable error)
Adds the exceptions as nested outputs to the original log message |
protected void |
addOutput(Output logMessage)
Helper method that adds the output to either the parent block or the controller response, depending on what was needed |
void |
debug(String message)
Log a debug message |
void |
error(String message)
Log an error message |
void |
error(String message,
Throwable error)
Log an error exception |
void |
info(String message)
Log an info message |
void |
setParentBlock(Block b)
Optional method. |
void |
warn(String message)
Log a warning message |
void |
warn(String message,
Throwable error)
Log a warning exception |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ControllerResponse response
protected Block parentBlock
| Constructor Detail |
public ControllerInstallLog(ControllerResponse theResponse)
theResponse - protected ControllerInstallLog()
| Method Detail |
public void setParentBlock(Block b)
b - the block you wish to use.protected void addOutput(Output logMessage)
logMessage - the output to addpublic void debug(String message)
debug in interface InstallLogmessage - The message to log.public void info(String message)
info in interface InstallLogmessage - The message to log.public void warn(String message)
warn in interface InstallLogmessage - The message to log.
public void warn(String message,
Throwable error)
warn in interface InstallLogmessage - The message to log.error - The Throwable object to log
public void error(String message,
Throwable error)
error in interface InstallLogmessage - The message to log.error - The Throwable object to logpublic void error(String message)
error in interface InstallLogmessage - The message to log.
protected void addNestedOutputs(Output o,
Throwable error)
o - the original log messageerror - the exception to log as well.
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||