createRegistrationBean() — spring-boot Function Reference
Architecture documentation for the createRegistrationBean() function in ServletContextInitializerBeans.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ee65bfcc_140f_2d14_92f8_ab0e71ad1357["createRegistrationBean()"] 2f478fb6_da24_07dc_e6e2_f5cf9261a251["createRegistrationBean()"] 2f478fb6_da24_07dc_e6e2_f5cf9261a251 -->|calls| ee65bfcc_140f_2d14_92f8_ab0e71ad1357 39adca33_5815_3769_8019_d5fd428286d7["createRegistrationBean()"] 39adca33_5815_3769_8019_d5fd428286d7 -->|calls| ee65bfcc_140f_2d14_92f8_ab0e71ad1357 2f478fb6_da24_07dc_e6e2_f5cf9261a251["createRegistrationBean()"] ee65bfcc_140f_2d14_92f8_ab0e71ad1357 -->|calls| 2f478fb6_da24_07dc_e6e2_f5cf9261a251 d319edb8_4247_fd07_02b7_bd9653c6a9d8["configureFromAnnotation()"] ee65bfcc_140f_2d14_92f8_ab0e71ad1357 -->|calls| d319edb8_4247_fd07_02b7_bd9653c6a9d8 style ee65bfcc_140f_2d14_92f8_ab0e71ad1357 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializerBeans.java lines 296–313
@Override
public RegistrationBean createRegistrationBean(String beanName, Servlet source, int totalNumberOfSourceBeans) {
String url = (totalNumberOfSourceBeans != 1) ? "/" + beanName + "/" : "/";
if (beanName.equals(DISPATCHER_SERVLET_NAME)) {
url = "/"; // always map the main dispatcherServlet to "/"
}
ServletRegistrationBean<Servlet> bean = new ServletRegistrationBean<>(source, url);
bean.setName(beanName);
bean.setMultipartConfig(this.multipartConfig);
ServletRegistration registrationAnnotation = this.beanFactory.findAnnotationOnBean(beanName,
ServletRegistration.class);
if (registrationAnnotation != null) {
Order orderAnnotation = this.beanFactory.findAnnotationOnBean(beanName, Order.class);
Assert.notNull(orderAnnotation, "'orderAnnotation' must not be null");
configureFromAnnotation(bean, registrationAnnotation, orderAnnotation);
}
return bean;
}
Domain
Subdomains
Called By
- createRegistrationBean()
- createRegistrationBean()
Source
Frequently Asked Questions
What does createRegistrationBean() do?
createRegistrationBean() is a function in the spring-boot codebase.
What does createRegistrationBean() call?
createRegistrationBean() calls 2 function(s): configureFromAnnotation, createRegistrationBean.
What calls createRegistrationBean()?
createRegistrationBean() is called by 2 function(s): createRegistrationBean, createRegistrationBean.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free