contextWithClassLoader() — spring-boot Function Reference
Architecture documentation for the contextWithClassLoader() function in SpringApplicationBuilderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f4ec6e49_f7c4_00af_b617_396b4f475602["contextWithClassLoader()"] be22d695_81d3_ca24_90d4_9385a402a390["getClassLoader()"] f4ec6e49_f7c4_00af_b617_396b4f475602 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390 3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"] f4ec6e49_f7c4_00af_b617_396b4f475602 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750 89cfa04a_3922_680e_945d_5b4338252cc7["run()"] f4ec6e49_f7c4_00af_b617_396b4f475602 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7 style f4ec6e49_f7c4_00af_b617_396b4f475602 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 180–188
@Test
void contextWithClassLoader() {
SpringApplicationBuilder application = new SpringApplicationBuilder(ExampleConfig.class)
.contextFactory(ApplicationContextFactory.ofContextClass(SpyApplicationContext.class));
ClassLoader classLoader = new URLClassLoader(new URL[0], getClass().getClassLoader());
application.resourceLoader(new DefaultResourceLoader(classLoader));
this.context = application.run();
assertThat(this.context.getClassLoader()).isEqualTo(classLoader);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does contextWithClassLoader() do?
contextWithClassLoader() is a function in the spring-boot codebase.
What does contextWithClassLoader() call?
contextWithClassLoader() calls 3 function(s): assertThat, getClassLoader, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free