DefaultLifecycleProcessor properly handles count for dependent beans

Issue: SPR-16901
This commit is contained in:
Juergen Hoeller
2018-06-06 21:25:26 +02:00
parent 0941081b0a
commit 6cf197864c
3 changed files with 24 additions and 22 deletions

View File

@@ -4,9 +4,15 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="lazyInitSchedulerWithDefaultShutdownOrder" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true"/>
<bean id="otherSchedulerWithDefaultShutdownOrder" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="autoStartup" value="false"/>
</bean>
<bean id="lazyInitSchedulerWithCustomShutdownOrder" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true">
<bean id="lazyInitSchedulerWithDefaultShutdownOrder" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
lazy-init="true" depends-on="otherSchedulerWithDefaultShutdownOrder"/>
<bean id="lazyInitSchedulerWithCustomShutdownOrder" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
lazy-init="true">
<property name="phase" value="99"/>
</bean>