Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


oracle.jbo.common
Class FileDiagnosticImpl

java.lang.Object
  |
  +--oracle.jbo.common.FileDiagnosticImpl
All Implemented Interfaces:
IDiagnostic

public class FileDiagnosticImpl
extends java.lang.Object
implements IDiagnostic

A Diagnostic implementation that routes output to a file.

The factory implementation allows the shortcut "file" for this implementation. It creates a unique file in the (system dependent) TEMP location, and writes all diagnostic output to it.

This class may be used with JDeveloper 9.0.2, in which case the special shortname isn't available: to use this class you should set * jbo.debugoutput to the value oracle.jbo.common.FileDiagnosticImpl

This class is instantiated in DiagonsticFactory#createDiagnostic().

Since:
Jdeveloper 9.0.3

Field Summary
static java.lang.String LOGFILE_PREFIX
           
static java.lang.String LOGFILE_SUFFIX
           

 

Constructor Summary
FileDiagnosticImpl()
          Creates an instance.

 

Method Summary
 void print(java.lang.String message)
          Displays a message in the console.
 void println(java.lang.String message)
          Prints a trace message and terminates the line.
 java.lang.String toString()
          Produces a textual description of this diagnostic service.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

LOGFILE_PREFIX

public static final java.lang.String LOGFILE_PREFIX
See Also:
Constant Field Values

LOGFILE_SUFFIX

public static final java.lang.String LOGFILE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

FileDiagnosticImpl

public FileDiagnosticImpl()
Creates an instance.
Method Detail

print

public void print(java.lang.String message)
Displays a message in the console.
Specified by:
print in interface IDiagnostic
Parameters:
message - the message to be printed.

println

public void println(java.lang.String message)
Description copied from interface: IDiagnostic
Prints a trace message and terminates the line.
Specified by:
println in interface IDiagnostic
Parameters:
message - the text to be printed.

toString

public java.lang.String toString()
Produces a textual description of this diagnostic service.
Specified by:
toString in interface IDiagnostic
Overrides:
toString in class java.lang.Object
Returns:
a status string.

Oracle9i Business Components for Java API Reference
Oracle9i Jdeveloper (9.0.4)
B10391-01


 

Copyright © 1997, 2003, Oracle. All rights reserved.