|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.report.ReportManager
public class ReportManager
The ReportManager creates and manages a Schmant application's
different Report instances. Every execution thread has its own
Report. A Schmant task or script can get its thread's Report
instance by calling getReport(). (Supported script types have
utility methods defined for this and do not have to call the ReportManager methods themselves.)
Report,
ReportFactory| Constructor Summary | |
|---|---|
ReportManager()
|
|
| Method Summary | |
|---|---|
static ReportFactory |
getDefaultReportFactory()
Get the default ReportFactory that is used for creating Report objects unless no factory is specified. |
static Report |
getReport()
Get the Report for the current thread. |
static Report |
init()
This method is called by Launcher to set up the
report manager. |
static Report |
newReport()
Create a new Report for the current thread using the current
default ReportFactory. |
static Report |
newReport(ReportFactory rf)
Create a new Report for the current thread using the supplied
ReportFactory. |
static Report |
newReport(ReportFactory rf,
String identifier)
Create a new Report for the current thread using the supplied
ReportFactory. |
static Report |
newReport(String identifier)
Create a new Report for the current thread using the current
default ReportFactory. |
static void |
setDefaultReportFactory(ReportFactory rf)
Set a new default ReportFactory. |
static void |
setReport(Report r)
Set a new Report for the current thread. |
static void |
tearDown(Report prevReport)
Tear down the report manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportManager()
| Method Detail |
|---|
public static Report init()
Launcher to set up the
report manager.
Launcher will keep it and return it when it calls
tearDown(Report).tearDown(Report)public static void tearDown(Report prevReport)
Launcher.
prevReport - The previous report, if any.public static Report newReport()
Report for the current thread using the current
default ReportFactory. The report will not have its identifier
set.
public static Report newReport(String identifier)
Report for the current thread using the current
default ReportFactory.
identifier - The identifier for the report.
public static Report newReport(ReportFactory rf,
String identifier)
Report for the current thread using the supplied
ReportFactory.
rf - The report factory.identifier - The identifier for the report.
public static Report newReport(ReportFactory rf)
Report for the current thread using the supplied
ReportFactory. The report will not have its identifier set.
rf - The report factory.
public static Report getReport()
Report for the current thread.
Report.public static void setReport(Report r)
Report for the current thread.
r - The new Report. This may be null.public static void setDefaultReportFactory(ReportFactory rf)
ReportFactory.
rf - The report factory.public static ReportFactory getDefaultReportFactory()
ReportFactory that is used for creating Report objects unless no factory is specified.
ReportFactory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||