Home / Function/ configureFromAnnotation() — spring-boot Function Reference

configureFromAnnotation() — spring-boot Function Reference

Architecture documentation for the configureFromAnnotation() function in ServletContextInitializerBeans.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  d319edb8_4247_fd07_02b7_bd9653c6a9d8["configureFromAnnotation()"]
  eb3f96ac_17be_de40_a79a_7bba6f85b5a8["configureFromAnnotation()"]
  eb3f96ac_17be_de40_a79a_7bba6f85b5a8 -->|calls| d319edb8_4247_fd07_02b7_bd9653c6a9d8
  ee65bfcc_140f_2d14_92f8_ab0e71ad1357["createRegistrationBean()"]
  ee65bfcc_140f_2d14_92f8_ab0e71ad1357 -->|calls| d319edb8_4247_fd07_02b7_bd9653c6a9d8
  2f478fb6_da24_07dc_e6e2_f5cf9261a251["createRegistrationBean()"]
  2f478fb6_da24_07dc_e6e2_f5cf9261a251 -->|calls| d319edb8_4247_fd07_02b7_bd9653c6a9d8
  eb3f96ac_17be_de40_a79a_7bba6f85b5a8["configureFromAnnotation()"]
  d319edb8_4247_fd07_02b7_bd9653c6a9d8 -->|calls| eb3f96ac_17be_de40_a79a_7bba6f85b5a8
  style d319edb8_4247_fd07_02b7_bd9653c6a9d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletContextInitializerBeans.java lines 315–330

		private void configureFromAnnotation(ServletRegistrationBean<Servlet> bean, ServletRegistration registration,
				Order order) {
			bean.setEnabled(registration.enabled());
			bean.setOrder(order.value());
			if (StringUtils.hasText(registration.name())) {
				bean.setName(registration.name());
			}
			bean.setAsyncSupported(registration.asyncSupported());
			bean.setIgnoreRegistrationFailure(registration.ignoreRegistrationFailure());
			bean.setLoadOnStartup(registration.loadOnStartup());
			bean.setUrlMappings(Arrays.asList(registration.urlMappings()));
			for (WebInitParam param : registration.initParameters()) {
				bean.addInitParameter(param.name(), param.value());
			}
			bean.setMultipartConfig(new MultipartConfigElement(registration.multipartConfig()));
		}

Domain

Subdomains

Calls

  • configureFromAnnotation()

Called By

Frequently Asked Questions

What does configureFromAnnotation() do?
configureFromAnnotation() is a function in the spring-boot codebase.
What does configureFromAnnotation() call?
configureFromAnnotation() calls 1 function(s): configureFromAnnotation.
What calls configureFromAnnotation()?
configureFromAnnotation() is called by 3 function(s): configureFromAnnotation, createRegistrationBean, createRegistrationBean.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free