load() — spring-boot Function Reference
Architecture documentation for the load() function in FilterRegistrationIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3a955c5f_0766_fa84_6948_c3ebf460f6ed["load()"] a10b8500_d8cb_6af0_a812_5104235fc6ab["normalFiltersAreRegistered()"] a10b8500_d8cb_6af0_a812_5104235fc6ab -->|calls| 3a955c5f_0766_fa84_6948_c3ebf460f6ed 7bc12952_8c62_03ab_d684_548cf35b9a1b["scopedTargetFiltersAreNotRegistered()"] 7bc12952_8c62_03ab_d684_548cf35b9a1b -->|calls| 3a955c5f_0766_fa84_6948_c3ebf460f6ed b515cf29_e35b_1b67_886f_2c717cb898c4["AnnotationConfigServletWebApplicationContext()"] 3a955c5f_0766_fa84_6948_c3ebf460f6ed -->|calls| b515cf29_e35b_1b67_886f_2c717cb898c4 209c8070_3f4b_fc81_95dc_c3a64961e6d3["WebApplicationContextInitializer()"] 3a955c5f_0766_fa84_6948_c3ebf460f6ed -->|calls| 209c8070_3f4b_fc81_95dc_c3a64961e6d3 0b0cf05f_b17a_262c_8873_d45e2b74ef45["initialize()"] 3a955c5f_0766_fa84_6948_c3ebf460f6ed -->|calls| 0b0cf05f_b17a_262c_8873_d45e2b74ef45 style 3a955c5f_0766_fa84_6948_c3ebf460f6ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/web/servlet/FilterRegistrationIntegrationTests.java lines 73–88
private void load(Class<?> configuration) {
ServletContext servletContext = mock(ServletContext.class);
given(servletContext.addFilter(any(), any(Filter.class))).willReturn(mock(Dynamic.class));
given(servletContext.getInitParameterNames()).willReturn(Collections.emptyEnumeration());
given(servletContext.getAttributeNames()).willReturn(Collections.emptyEnumeration());
this.context = new AnnotationConfigServletWebApplicationContext();
this.context.setServletContext(servletContext);
this.context.register(configuration);
this.context.refresh();
try {
new WebApplicationContextInitializer(this.context).initialize(servletContext);
}
catch (ServletException ex) {
throw new RuntimeException(ex);
}
}
Domain
Subdomains
Called By
- normalFiltersAreRegistered()
- scopedTargetFiltersAreNotRegistered()
Source
Frequently Asked Questions
What does load() do?
load() is a function in the spring-boot codebase.
What does load() call?
load() calls 3 function(s): AnnotationConfigServletWebApplicationContext, WebApplicationContextInitializer, initialize.
What calls load()?
load() is called by 2 function(s): normalFiltersAreRegistered, scopedTargetFiltersAreNotRegistered.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free