mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
SmartLifecycle default methods for auto-startup in default phase
Issue: SPR-17188
This commit is contained in:
+1
-7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user