FileDocCategorySizeDatePackage
jdk12CreateThreadAction.javaAPI DocJMF 2.1.1e1731Mon May 12 12:21:20 BST 2003com.sun.media.protocol.dsound

jdk12CreateThreadAction

public class jdk12CreateThreadAction extends Object implements PrivilegedAction

Fields Summary
private Class
threadclass
private String
name
public static Constructor
cons
public static Constructor
conswithname
Constructors Summary
public jdk12CreateThreadAction(Class threadclass, String name)


     
	try {
	    cons = jdk12CreateThreadAction.class.getConstructor(new Class[] {
		Class.class});
	    conswithname = jdk12CreateThreadAction.class.getConstructor(new Class[] {
		Class.class, String.class});
	} catch (Throwable e) {
	}
    
	
	try {
	    this.threadclass = threadclass;
	    this.name = name;
	} catch (Throwable e) {
	}
	
    
public jdk12CreateThreadAction(Class threadclass)

	this(threadclass, null);
    
Methods Summary
public java.lang.Objectrun()

	try {
	    Object object = threadclass.newInstance();
	    if (name != null) {
		((Thread) object).setName(name);
	    }
	    return object;
	} catch (Throwable e) {
// 	    System.out.println("jsound run: throws " + e);
	    return null;
	}