nl.knowledgeplaza.util.thread
Class TraceableRunnable

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

public abstract class TraceableRunnable
extends java.lang.Object
implements java.lang.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()
           
 java.lang.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 java.lang.Runnable

toString

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

Overrides:
toString in class java.lang.Object


Copyright © 2010 KnowledgePlaza. All Rights Reserved.