1 package org.exoplatform.services.threadpool.impl; 2 3 /** 4 * $Id: DefaultThreadFactory.java,v 1.1.1.1 2004/03/05 21:56:48 benjmestrallet Exp $ 5 * 6 * The contents of this file are subject to the ClickBlocks Public 7 * License Version 1.0 (the "License"); you may not use this file 8 * except in compliance with the License. You may obtain a copy of 9 * the License at http://www.clickblocks.org 10 * 11 * Software distributed under the License is distributed on an "AS 12 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 13 * implied, including, but not limited to, the implied warranties of 14 * merchantability, fitness for a particular purpose and 15 * non-infringement. See the License for the specific language 16 * governing rights and limitations under the License. 17 * 18 * ClickBlocks, the ClickBlocks logo and combinations thereof are 19 * trademarks of ClickBlocks, LLC in the United States and other 20 * countries. 21 * 22 * The Initial Developer of the Original Code is ClickBlocks, LLC. 23 * Portions created by ClickBlocks, LLC are Copyright (C) 2000. 24 * All Rights Reserved. 25 * 26 * Contributor(s): Mark Grand 27 */ 28 29 import org.exoplatform.services.threadpool.impl.ThreadFactoryIF; 30 31 /** 32 * This is a default thread factory that creates vanilla threads. 33 */ 34 public class DefaultThreadFactory implements ThreadFactoryIF { 35 /** 36 * Return a Thread that runs the given Runnable object. 37 */ 38 public Thread createThread(Runnable r) { 39 return new Thread(r); 40 } // createThread(Runnable) 41 } // class DefaultThreadFactory 42