1   /*
2    * Copyright (C) The Spice Group. All rights reserved.
3    *
4    * This software is published under the terms of the Spice
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
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  }