1 17 package org.apache.excalibur.thread.impl; 18 19 import org.apache.excalibur.thread.Executable; 20 21 27 final class ExecutableRunnable 28 implements Executable 29 { 30 private Runnable m_runnable; 32 33 38 protected ExecutableRunnable( final Runnable runnable ) 39 { 40 if( null == runnable ) 41 { 42 throw new NullPointerException ( "runnable" ); 43 } 44 m_runnable = runnable; 45 } 46 47 52 public void execute() 53 throws Exception  54 { 55 m_runnable.run(); 56 } 57 } 58 | Popular Tags |