1
2
3
4
5
6
7
8 package org.codehaus.spice.netserve.connection.handlers;
9
10 import org.codehaus.spice.threadpool.ThreadPool;
11 import org.codehaus.spice.threadpool.ThreadControl;
12 import org.codehaus.spice.threadpool.Executable;
13
14 /***
15 *
16 * @author Peter Donald
17 * @version $Revision: 1.2 $ $Date: 2004/03/21 23:42:59 $
18 */
19 class MockThreadPool
20 implements ThreadPool
21 {
22 public ThreadControl execute( Runnable work )
23 {
24 final Thread thread = new Thread( work );
25 thread.start();
26 return new MockThreadControl( thread );
27 }
28
29 public ThreadControl execute( Executable work )
30 {
31 return null;
32 }
33 }