Java EE 5 SDK

com.sun.appserv.management.util.misc
Class DebugOutImpl

java.lang.Object
  extended by com.sun.appserv.management.util.misc.DebugOutImpl
All Implemented Interfaces:
DebugOut, DebugSink

public class DebugOutImpl
extends Object
implements DebugOut


Constructor Summary
DebugOutImpl(String id, boolean debug)
           
DebugOutImpl(String id, boolean debug, DebugSink sink)
           
 
Method Summary
 void debug(Object... args)
          If getDebug() returns true, output the arguments
 void debugMethod(String methodName, Object... args)
           
 void debugMethod(String msg, String methodName, Object... args)
           
 boolean getDebug()
          Return true if debugging is on.
 String getID()
          Return the arbitrary identifier for this instance.
static String methodString(String name, Object... args)
           
 void print(Object o)
          Output a message without a newline.
 void println(Object o)
          Output a message with a newline.
 void setDebug(boolean debug)
           
 String toString(Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugOutImpl

public DebugOutImpl(String id,
                    boolean debug,
                    DebugSink sink)

DebugOutImpl

public DebugOutImpl(String id,
                    boolean debug)
Method Detail

getID

public String getID()
Description copied from interface: DebugOut
Return the arbitrary identifier for this instance.

Specified by:
getID in interface DebugOut

getDebug

public boolean getDebug()
Description copied from interface: DebugOut
Return true if debugging is on.

Specified by:
getDebug in interface DebugOut

print

public void print(Object o)
Description copied from interface: DebugSink
Output a message without a newline.

Specified by:
print in interface DebugSink
Parameters:
o - the Object to output

println

public void println(Object o)
Description copied from interface: DebugSink
Output a message with a newline.

Specified by:
println in interface DebugSink
Parameters:
o - the Object to output

toString

public String toString(Object... args)

setDebug

public void setDebug(boolean debug)

debug

public void debug(Object... args)
Description copied from interface: DebugOut
If getDebug() returns true, output the arguments

Specified by:
debug in interface DebugOut

debugMethod

public void debugMethod(String methodName,
                        Object... args)
Specified by:
debugMethod in interface DebugOut

debugMethod

public void debugMethod(String msg,
                        String methodName,
                        Object... args)
Specified by:
debugMethod in interface DebugOut

methodString

public static String methodString(String name,
                                  Object... args)

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.