org.sonatype.sisu.goodies.thread
Class RunnableSupport

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.ComponentSupport
      extended by org.sonatype.sisu.goodies.thread.RunnableSupport
All Implemented Interfaces:
Runnable

public abstract class RunnableSupport
extends ComponentSupport
implements Runnable

Support for Runnable implementations.

Since:
1.0

Field Summary
 
Fields inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
log
 
Constructor Summary
RunnableSupport()
           
 
Method Summary
protected abstract  void doRun()
           
protected  void onFailure(Throwable cause)
           
 void run()
           
 
Methods inherited from class org.sonatype.sisu.goodies.common.ComponentSupport
createLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableSupport

public RunnableSupport()
Method Detail

run

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

onFailure

protected void onFailure(Throwable cause)

doRun

protected abstract void doRun()
                       throws Exception
Throws:
Exception


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.