SimpleFlow s = null;
s = new CreditPrintFlow();
if (s != null) {
Thread t = new Thread(s);
t.start();
return "SUCCESS";
} else
return "FALSE";
public abstract class SimpleFlow implements Runnable { IObserver ob = PageObserver.getInstance(); JobResource jr = JobResource.getInstance(); public IObserver getOb() {
return ob;
} public JobResource getJr() {
return jr;
} static HashMap<String, JobNode> nodeMap = new HashMap<String, JobNode>(); public abstract HashMap<String, JobNode> getNodeMap(); public SimpleFlow(String batchFiler, String brnoFilter, String preFlag, String priFlag, String operator) {
jr.setBatchFiler(batchFiler);
jr.setBrnoFilter(brnoFilter);
jr.setPreFlag(preFlag);
jr.setPriFlag(priFlag);
jr.setOperator(operator);
} public void startup() {
JobDispatch.runFlow(this);
}
}
启动线程后正常会调用SimpleFlow 复写的run()方法,但是SimpleFlow 只有基本的构造函数,请问该线程启动后会如何调用?
s = new CreditPrintFlow();
if (s != null) {
Thread t = new Thread(s);
t.start();
return "SUCCESS";
} else
return "FALSE";
public abstract class SimpleFlow implements Runnable { IObserver ob = PageObserver.getInstance(); JobResource jr = JobResource.getInstance(); public IObserver getOb() {
return ob;
} public JobResource getJr() {
return jr;
} static HashMap<String, JobNode> nodeMap = new HashMap<String, JobNode>(); public abstract HashMap<String, JobNode> getNodeMap(); public SimpleFlow(String batchFiler, String brnoFilter, String preFlag, String priFlag, String operator) {
jr.setBatchFiler(batchFiler);
jr.setBrnoFilter(brnoFilter);
jr.setPreFlag(preFlag);
jr.setPriFlag(priFlag);
jr.setOperator(operator);
} public void startup() {
JobDispatch.runFlow(this);
}
}
启动线程后正常会调用SimpleFlow 复写的run()方法,但是SimpleFlow 只有基本的构造函数,请问该线程启动后会如何调用?
如果SimpleFlow 是CreditPrintFlow的父类。那,SimpleFlow 没有run方法,CreditPrintFlow就要有了