SmartLifecycle default methods for auto-startup in default phase

Issue: SPR-17188
This commit is contained in:
Juergen Hoeller
2018-08-16 12:08:02 +02:00
parent 446a604ad0
commit 2ec8fa9cac
15 changed files with 97 additions and 144 deletions

View File

@@ -207,7 +207,7 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe
private int startupDelay = 0;
private int phase = Integer.MAX_VALUE;
private int phase = DEFAULT_PHASE;
private boolean exposeSchedulerInRepository = false;
@@ -796,12 +796,6 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe
}
}
@Override
public void stop(Runnable callback) throws SchedulingException {
stop();
callback.run();
}
@Override
public boolean isRunning() throws SchedulingException {
if (this.scheduler != null) {