callRunners() — spring-boot Function Reference
Architecture documentation for the callRunners() function in SpringApplication.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 10edc625_2941_409a_8eeb_9f36968b6ea5["callRunners()"] 89cfa04a_3922_680e_945d_5b4338252cc7["run()"] 89cfa04a_3922_680e_945d_5b4338252cc7 -->|calls| 10edc625_2941_409a_8eeb_9f36968b6ea5 582ef3fe_9785_9aaa_7484_fbdd07ed9940["getOrderComparator()"] 10edc625_2941_409a_8eeb_9f36968b6ea5 -->|calls| 582ef3fe_9785_9aaa_7484_fbdd07ed9940 0cf04adc_2d44_ed73_1c3f_c783a8e2fbe5["FactoryAwareOrderSourceProvider()"] 10edc625_2941_409a_8eeb_9f36968b6ea5 -->|calls| 0cf04adc_2d44_ed73_1c3f_c783a8e2fbe5 046b512d_aaa7_c843_42f5_48fb0214b89c["callRunner()"] 10edc625_2941_409a_8eeb_9f36968b6ea5 -->|calls| 046b512d_aaa7_c843_42f5_48fb0214b89c style 10edc625_2941_409a_8eeb_9f36968b6ea5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 767–777
private void callRunners(ConfigurableApplicationContext context, ApplicationArguments args) {
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
String[] beanNames = beanFactory.getBeanNamesForType(Runner.class);
Map<Runner, String> instancesToBeanNames = new IdentityHashMap<>();
for (String beanName : beanNames) {
instancesToBeanNames.put(beanFactory.getBean(beanName, Runner.class), beanName);
}
Comparator<Object> comparator = getOrderComparator(beanFactory)
.withSourceProvider(new FactoryAwareOrderSourceProvider(beanFactory, instancesToBeanNames));
instancesToBeanNames.keySet().stream().sorted(comparator).forEach((runner) -> callRunner(runner, args));
}
Domain
Subdomains
Calls
- FactoryAwareOrderSourceProvider()
- callRunner()
- getOrderComparator()
Called By
Source
Frequently Asked Questions
What does callRunners() do?
callRunners() is a function in the spring-boot codebase.
What does callRunners() call?
callRunners() calls 3 function(s): FactoryAwareOrderSourceProvider, callRunner, getOrderComparator.
What calls callRunners()?
callRunners() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free