| 
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  
oracle.jbo.common.DebugDiagnostic
public final class DebugDiagnostic
Provides tracing and logging methods for use during application development.
This class cannot be directly instantiated; it is instantiated in DiagonsticFactory#createDiagnostic().
These methods can be invoked even in critical code sections, because all methods in this class will be compiled out of the production release of the product.
DiagnosticFactory| Method Summary | |
|---|---|
static void | 
ASSERT(boolean test)Conditionally raises an exception.  | 
static void | 
ASSERT(boolean test, java.lang.String message)Conditionally prints a warning message and raises an exception.  | 
static void | 
ASSERT(boolean test, java.lang.String message, java.lang.Object[] param)Conditionally prints a warning message.  | 
static void | 
NULL(java.lang.String s)Does nothing: this method allows fragments of code to be embedded that will be compiled away for release-mode builds.  | 
static void | 
print(java.lang.String message)Prints a trace message.  | 
static void | 
print(java.lang.String message, int level)Prints a trace message to the diagnostic device.  | 
static void | 
println(java.lang.String message)Prints a trace message line to the diagnostic device.  | 
static void | 
println(java.lang.String message, int level)Prints a trace message line to the diagnostic device.  | 
static void | 
printStackTrace()Prints a stack trace for the current environment.  | 
static void | 
printStackTrace(java.lang.Throwable ex)Prints a stack trace for an exception.  | 
static void | 
setStopOnAssert(boolean b)Enables ASSERT() methods to throw exceptions. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static void print(java.lang.String message,
                         int level)
message - the text to be printed.level - the message's nesting level.public static void print(java.lang.String message)
message - the text to be printed.
public static void println(java.lang.String message,
                           int level)
message - the text to be printed.level - the message's nesting level.public static void println(java.lang.String message)
message - the text to be printed.
public static void ASSERT(boolean test,
                          java.lang.String message,
                          java.lang.Object[] param)
The message is constructed from a format string and an array of parameters. An exception is raised if enabled by setStopOnAssert().
test - the result of the test being asserted.message - the message's format string.param - the array of message parameters.JboAssert - if test is true.
public static void ASSERT(boolean test,
                          java.lang.String message)
An exception is raised if enabled by setStopOnAssert().
test - the result of the test being asserted.message - the message.JboAssert - if test is true.public static void ASSERT(boolean test)
An exception is raised if enabled by setStopOnAssert().
test - the result of the test being asserted.JboAssert - if test is true.public static void NULL(java.lang.String s)
s - not used.public static void setStopOnAssert(boolean b)
ASSERT() methods to throw exceptions.b - if true, subsequent invocations of ASSERT() methods will throw exceptions.public static void printStackTrace()
public static void printStackTrace(java.lang.Throwable ex)
ex - the exception to be traced.
  | 
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||