|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.util.DebugProperties
public class DebugProperties
This utility class provides access to all the properties that are used
to configure information capture to aid in debugging. It gets initialized
from the debug.properties file.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
static boolean |
getFlag(int flag,
Object target)
Determines if a particular flag is set, for a particular object. |
static boolean |
getFlag(int flag,
Object target,
String qualifier)
Determines if a particular flag is set, for a particular object, qualified by the qualifier. |
static boolean |
isData(Object target)
Determines if the DATA flag is set, for a particular object. |
static boolean |
isData(Object target,
String qualifier)
Determines if the DATA flag is set, for a particular object, qualified by the qualifier. |
static boolean |
isDebugOn(String target)
Flag that specifies if any debug capture can take place for a specific target. |
static boolean |
isException(Object target)
Determines if the EXCEPTION flag is set, for a particular object. |
static boolean |
isException(Object target,
String qualifier)
Determines if the EXCEPTION flag is set, for a particular object, qualified by the qualifier. |
static boolean |
isReport(Object target)
Determines if the REPORT flag is set, for a particular object. |
static boolean |
isReport(Object target,
String qualifier)
Determines if the REPORT flag is set, for a particular object, qualified by the qualifier. |
static boolean |
isStackTrace(Object target)
Determines if the STACK_TRACE flag is set, for a particular object. |
static boolean |
isStackTrace(Object target,
String qualifier)
Determines if the STACK_TRACE flag is set, for a particular object, qualified by the qualifier. |
static boolean |
isTrace(Object target)
Determines if the TRACE flag is set, for a particular object. |
static boolean |
isTrace(Object target,
String qualifier)
Determines if the TRACE flag is set, for a particular object, qualified by the qualifier. |
static void |
setFlag(int flag,
String target,
DebugType target_type,
String qualifier,
boolean value)
Sets the flag, for a particular target, which may be qualified by the qualifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isDebugOn(String target)
target -
public static boolean isData(Object target)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
getFlag(int,Object)
public static boolean isData(Object target,
String qualifier)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
getFlag(int,Object,String)public static boolean isException(Object target)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
getFlag(int,Object)
public static boolean isException(Object target,
String qualifier)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
getFlag(int,Object,String)public static boolean isReport(Object target)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
getFlag(int,Object)
public static boolean isReport(Object target,
String qualifier)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
getFlag(int,Object,String)public static boolean isStackTrace(Object target)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
getFlag(int,Object)
public static boolean isStackTrace(Object target,
String qualifier)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
getFlag(int,Object,String)public static boolean isTrace(Object target)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
getFlag(int,Object)
public static boolean isTrace(Object target,
String qualifier)
target - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
getFlag(int,Object,String)
public static boolean getFlag(int flag,
Object target)
Determination is made based on the following algorithm for finding a flag configuration that best matches the target:1) classname/target.toString()/current thread 2) classname/target.toString() 3) classname/current thread 4) classname
flag - the flag to be checkedtarget - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methods
DebugFlag
public static boolean getFlag(int flag,
Object target,
String qualifier)
Determination is made based on the following algorithm for finding a flag configuration that best matches the target:1) classname/target.toString()/current thread 2) classname/target.toString() 3) classname/qualifier 4) classname/current thread 5) classname
flag - the flag to be checkedtarget - an object that is the target of the flag; the object
can be an instance of a Class, or a Class, so that it can be used
from instance methods or static methodsqualifier - a string that provides an open end qualification
for the target
DebugFlag
public static void setFlag(int flag,
String target,
DebugType target_type,
String qualifier,
boolean value)
flag - the flag to be checkedtarget - a String that is the key for a target. If target
is a Class, it is the classname. If target is an instance of a Class,
it is the classname +"/"+ instance.toString(). If target is a package,
it is the package name. If target is a defined group, it is the name
of the group.target_type - one of the predefined DebugTypesqualifier - a string that provides an open end qualification
for the targetvalue - true, if the flag is to be be set; false if the flag
is to be clearedDebugFlag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||