org.apache.excalibur.thread.impl
Class ExecutableRunnable

java.lang.Object
  extended by org.apache.excalibur.thread.impl.ExecutableRunnable
All Implemented Interfaces:
org.apache.excalibur.thread.Executable

final class ExecutableRunnable
extends java.lang.Object
implements org.apache.excalibur.thread.Executable

Class to adapt a Runnable object in an Executable object.

Author:
Avalon Development Team

Field Summary
private  java.lang.Runnable m_runnable
           
 
Constructor Summary
protected ExecutableRunnable(java.lang.Runnable runnable)
          Create adapter using specified runnable.
 
Method Summary
 void execute()
          Execute the underlying Runnable object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_runnable

private java.lang.Runnable m_runnable
Constructor Detail

ExecutableRunnable

protected ExecutableRunnable(java.lang.Runnable runnable)
Create adapter using specified runnable.

Parameters:
runnable - the runnable to adapt to
Method Detail

execute

public void execute()
             throws java.lang.Exception
Execute the underlying Runnable object.

Specified by:
execute in interface org.apache.excalibur.thread.Executable
Throws:
java.lang.Exception - if an error occurs