eventsFromOtherContextsAreIgnored() — spring-boot Function Reference
Architecture documentation for the eventsFromOtherContextsAreIgnored() function in SpringApplicationAdminMXBeanRegistrarTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ab5a607f_ef61_b488_f6b7_a391f5b5f772["eventsFromOtherContextsAreIgnored()"] 24be1855_9af1_f675_b5d8_3e3a39c99fa3["ApplicationReadyEvent()"] ab5a607f_ef61_b488_f6b7_a391f5b5f772 -->|calls| 24be1855_9af1_f675_b5d8_3e3a39c99fa3 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3["SpringApplication()"] ab5a607f_ef61_b488_f6b7_a391f5b5f772 -->|calls| 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3 0c7ed92a_3cad_4c23_092e_930235fc1a81["isApplicationReady()"] ab5a607f_ef61_b488_f6b7_a391f5b5f772 -->|calls| 0c7ed92a_3cad_4c23_092e_930235fc1a81 style ab5a607f_ef61_b488_f6b7_a391f5b5f772 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/admin/SpringApplicationAdminMXBeanRegistrarTests.java lines 89–100
@Test
void eventsFromOtherContextsAreIgnored() throws MalformedObjectNameException {
SpringApplicationAdminMXBeanRegistrar registrar = new SpringApplicationAdminMXBeanRegistrar(OBJECT_NAME);
ConfigurableApplicationContext context = mock(ConfigurableApplicationContext.class);
registrar.setApplicationContext(context);
registrar.onApplicationReadyEvent(new ApplicationReadyEvent(new SpringApplication(), new String[0],
mock(ConfigurableApplicationContext.class), null));
assertThat(isApplicationReady(registrar)).isFalse();
registrar
.onApplicationReadyEvent(new ApplicationReadyEvent(new SpringApplication(), new String[0], context, null));
assertThat(isApplicationReady(registrar)).isTrue();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does eventsFromOtherContextsAreIgnored() do?
eventsFromOtherContextsAreIgnored() is a function in the spring-boot codebase.
What does eventsFromOtherContextsAreIgnored() call?
eventsFromOtherContextsAreIgnored() calls 3 function(s): ApplicationReadyEvent, SpringApplication, isApplicationReady.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free