This callback variant is somewhat similar to {@link org.springframework.context.event.ContextRefreshedEvent} but doesn'trequire an implementation of {@link org.springframework.context.ApplicationListener}, with no need to filter context references across a context hierarchy etc. It also implies a more minimal dependency on just the {@code beans} packageand is being honored by standalone {@link ListableBeanFactory} implementations,not just in an {@link org.springframework.context.ApplicationContext} environment.
NOTE: If you intend to start/manage asynchronous tasks, preferably implement {@link org.springframework.context.Lifecycle} instead which offersa richer model for runtime management and allows for phased startup/shutdown. @author Juergen Hoeller @since 4.1 @see org.springframework.beans.factory.config.ConfigurableListableBeanFactory#preInstantiateSingletons()
|
|