nl.knowledgeplaza.util.thread
Class TraceableRunnable

java.lang.Object
  extended by nl.knowledgeplaza.util.thread.TraceableRunnable
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TraceableRunnableDecorator

public abstract class TraceableRunnable
extends Object
implements Runnable

A runnable that remembers where it was created.

Version:
$Revision: 1.2 $

Constructor Summary
TraceableRunnable()
          Remember the stack upon instantiation
 
Method Summary
abstract  void run()
           
 String toString()
          return a stack trace in the same form as Throwable.printStackTrace()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TraceableRunnable

public TraceableRunnable()
Remember the stack upon instantiation

Method Detail

run

public abstract void run()
Specified by:
run in interface Runnable

toString

public String toString()
return a stack trace in the same form as Throwable.printStackTrace()

Overrides:
toString in class Object


Copyright © 2011 KnowledgePlaza. All Rights Reserved.