|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.esupportail.cas.server.util.log.Debug
public abstract class Debug
This class implements a basic object owning debugging features.
| Field Summary | |
|---|---|
private boolean |
debug
A debugging flag. |
| Constructor Summary | |
|---|---|
protected |
Debug(boolean d)
Constructor. |
| Method Summary | |
|---|---|
protected java.lang.Class |
checkClass(java.lang.String classname)
Check that a class is present |
static boolean |
elementDebugValue(org.dom4j.Element element,
boolean defaultValue)
A convenient method to get debugging mode with a default value. |
boolean |
isDebug()
Tell if the handler is in debugging mode or not. |
void |
setDebug(boolean d)
Set deubgging mode. |
protected void |
trace(java.lang.Object obj)
Debugging. |
protected void |
trace(java.lang.String str)
Debugging. |
protected void |
traceBegin()
Debugging (at the beginning of the execution of a method). |
protected void |
traceEnd()
Debugging (at the end of the execution of a method). |
protected void |
traceEnd(java.lang.Object obj)
Debugging (at the end of the execution of a method). |
protected void |
traceEnd(java.lang.String str)
Debugging (at the end of the execution of a method). |
protected void |
traceThrow(java.lang.Exception e)
Debugging (throwing an exception). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean debug
| Constructor Detail |
|---|
protected Debug(boolean d)
d - true to set debugging mode, false otherwise.| Method Detail |
|---|
protected final java.lang.Class checkClass(java.lang.String classname)
throws java.lang.Exception
classname - the name of the class
java.lang.Exception - Exception
public static boolean elementDebugValue(org.dom4j.Element element,
boolean defaultValue)
element - an XML element having a debug attribute ("on", "off" or "default")defaultValue - the value to return when str equals to "default"
public final boolean isDebug()
public final void setDebug(boolean d)
d - a booleanprotected final void trace(java.lang.Object obj)
obj - an objectprotected final void trace(java.lang.String str)
str - a stringprotected final void traceBegin()
protected final void traceEnd()
protected final void traceEnd(java.lang.Object obj)
obj - an objectprotected final void traceEnd(java.lang.String str)
str - a string
protected final void traceThrow(java.lang.Exception e)
throws java.lang.Exception
e - the exception to throw
java.lang.Exception - Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||