CreateSourceThreadActionpublic class CreateSourceThreadAction extends Object implements PrivilegedActionThe 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.Object | run()
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;
}
|
|