|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.debug.DebugMultiplexer
DebugMultiplexer.java This class can be used to multiplex other DebugInterface interfaces. It implements DebugInterface directly, rather than extending AbstractInterface, because I want to make no assumptions at all about the instances which it contains. This class has two relevant methods public methods to install and remove other DebugInterface instances. The first time install is called the multiplexer automatically installs itself as the primary DebugInterface instance. If all but one of its DebugInterface instances are removed from it, then it will replace itself as the primary interface with a DefaultDebug instance. If any of the Debug instances fail at any time in any of their methods, they will be removed. If Debug is true all of the others instances will be informed of this. Created: Sun May 7 20:49:33 2000
Method Summary | |
static DebugInterface |
addDebugInstance(DebugInterface deb)
Add a new Debug Interface instance. |
void |
both(Class cla,
Object message,
Throwable th)
|
void |
both(Class cla,
String message,
Throwable th)
|
void |
both(Object obj,
Object message,
Throwable th)
|
void |
both(Object obj,
String message,
Throwable th)
|
void |
message(Class cla,
Object message)
|
void |
message(Class cla,
String message)
|
void |
message(Object obj,
Object message)
|
void |
message(Object obj,
String message)
|
static DebugInterface |
removeDebugInstance(DebugInterface deb)
Remove a DebugInterface instance from the multiplexer. |
void |
throwable(Class cla,
Throwable th)
|
void |
throwable(Object obj,
Throwable th)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DebugInterface addDebugInstance(DebugInterface deb)
deb
-
public static DebugInterface removeDebugInstance(DebugInterface deb)
deb
- the interface to remove
public void message(Object obj, String message)
message
in interface DebugInterface
public void message(Object obj, Object message)
message
in interface DebugInterface
public void message(Class cla, String message)
message
in interface DebugInterface
public void message(Class cla, Object message)
message
in interface DebugInterface
public void throwable(Object obj, Throwable th)
throwable
in interface DebugInterface
public void throwable(Class cla, Throwable th)
throwable
in interface DebugInterface
public void both(Object obj, String message, Throwable th)
both
in interface DebugInterface
public void both(Class cla, String message, Throwable th)
both
in interface DebugInterface
public void both(Object obj, Object message, Throwable th)
both
in interface DebugInterface
public void both(Class cla, Object message, Throwable th)
both
in interface DebugInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |