1 8 package org.apache.avalon.excalibur.thread.impl; 9 10 import org.apache.avalon.framework.activity.Executable; 11 12 17 final class ExecutableRunnable 18 implements Executable 19 { 20 private Runnable m_runnable; 22 23 28 protected ExecutableRunnable( final Runnable runnable ) 29 { 30 m_runnable = runnable; 31 32 if( null == runnable ) 34 { 35 throw new NullPointerException ( "runnable property is null" ); 36 } 37 } 38 39 44 public void execute() 45 throws Exception  46 { 47 m_runnable.run(); 48 } 49 } 50 | Popular Tags |