FileDocCategorySizeDatePackage
CreateSourceThreadAction.javaAPI DocJMF 2.1.1e1547Mon May 12 12:20:50 BST 2003com.sun.media

CreateSourceThreadAction

public class CreateSourceThreadAction extends Object implements PrivilegedAction
The reason this class is in this package and not util is because it is used to create SourceThread in BasicSourceModule which is a package private classes. These cannot be instantiated from the util package

Fields Summary
private Class
sourceThreadClass
private BasicSourceModule
bsm
private Object
myoc
private int
i
static Constructor
cons
Constructors Summary
public CreateSourceThreadAction(Class sourceThreadClass, BasicSourceModule bsm, Object myoc, int i)

 	try {
 	    cons = CreateSourceThreadAction.class.getConstructor(new Class[] {
 		Class.class, BasicSourceModule.class, Object.class, int.class});
 	} catch (Throwable e) {
 	}
     
	
	try {
	    this.sourceThreadClass = sourceThreadClass;
	    this.bsm = bsm;
	    this.myoc = myoc;
	    this.i = i;
	} catch (Throwable e) {
	}
    
Methods Summary
public java.lang.Objectrun()

	try {
	    Constructor cons = sourceThreadClass.getConstructor(new Class[]
				{BasicSourceModule.class,
                                 myoc.getClass(),
                                 int.class});

	    Object object = cons.newInstance(new Object[] {
		bsm, myoc, new Integer(i)});
	    return object;
	} catch (Throwable e) {
	    return null;
	}