registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() — spring-boot Function Reference
Architecture documentation for the registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() function in SpringApplicationAdminJmxAutoConfigurationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD dd6885c0_1751_5df6_bfa9_e0274c1d28b4["registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters()"] 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] dd6885c0_1751_5df6_bfa9_e0274c1d28b4 -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b 1073b111_429c_ead2_aec6_22f70f70425a["createObjectName()"] dd6885c0_1751_5df6_bfa9_e0274c1d28b4 -->|calls| 1073b111_429c_ead2_aec6_22f70f70425a 73bd5736_1a32_834d_2346_d926345a3200["createDefaultObjectName()"] dd6885c0_1751_5df6_bfa9_e0274c1d28b4 -->|calls| 73bd5736_1a32_834d_2346_d926345a3200 style dd6885c0_1751_5df6_bfa9_e0274c1d28b4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/admin/SpringApplicationAdminJmxAutoConfigurationTests.java lines 90–106
@Test
void registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() {
String customJmxName = "org.acme:name=FooBar";
this.contextRunner.withUserConfiguration(MultipleMBeanExportersConfiguration.class)
.withSystemProperties("spring.application.admin.jmx-name=" + customJmxName)
.withPropertyValues(ENABLE_ADMIN_PROP)
.run((context) -> {
try {
this.server.getObjectInstance(createObjectName(customJmxName));
}
catch (InstanceNotFoundException ex) {
fail("Admin MBean should have been exposed with custom name");
}
assertThatExceptionOfType(InstanceNotFoundException.class)
.isThrownBy(() -> this.server.getObjectInstance(createDefaultObjectName()));
});
}
Domain
Subdomains
Calls
- createDefaultObjectName()
- createObjectName()
- run()
Source
Frequently Asked Questions
What does registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() do?
registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() is a function in the spring-boot codebase.
What does registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() call?
registerWithCustomJmxNameWhenThereAreMultipleMBeanExporters() calls 3 function(s): createDefaultObjectName, createObjectName, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free