|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.report.Category
Class Category is a singleton that provides access to a set of reporting categories. Each reporting category has a set of reporters that present logging events to the user in one way or another.
Field Summary | |
protected java.lang.String |
categoryName
Name of this category instance. |
protected static java.util.Hashtable |
instances
Table of instances of Category. |
protected boolean |
isEnabled
True if this category is enabled. |
protected ReporterGroup |
reporterGroup
Reporter group where logging events are sent. |
Constructor Summary | |
protected |
Category(java.lang.String name)
Protected since this is a singleton. |
Method Summary | |
void |
configurationChanged()
Invoked when the configuration has been accepted by the user. |
static Category |
getDefaultInstance()
Retrieves the default logging category. |
java.lang.String |
getName()
Returns the name of this category. |
static Category |
instanceOf(java.lang.String name)
Retrieves the instance of the named logging category. |
boolean |
isEnabled()
Returns the enabled status of this category. |
void |
report(java.lang.String msg)
Report a new debugging message to this category. |
void |
setEnabled(boolean enable)
Set the enabled state of this category. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable instances
protected java.lang.String categoryName
protected boolean isEnabled
protected ReporterGroup reporterGroup
Constructor Detail |
protected Category(java.lang.String name)
name
- category name.Method Detail |
public void configurationChanged()
configurationChanged
in interface com.bluemarsh.config.ConfigureListener
public static Category getDefaultInstance()
public java.lang.String getName()
public static Category instanceOf(java.lang.String name)
name
- name of Category to get instance of.public boolean isEnabled()
public void report(java.lang.String msg)
msg
- debugging message to report.public void setEnabled(boolean enable)
enable
- true to enable this category, false to disable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |