public void foo() { jsl.jobStateChange(new StateEvent(this, JobState.COMPLETE, null)); }
public void addStateListener(StateListener listener) { jsl = listener; listener.jobStateChange(new StateEvent(this, JobState.READY, null)); }