Polish DynamicPropertyRegistrar documentation

This commit is contained in:
Sam Brannen
2024-09-12 13:20:59 +02:00
parent 398e5528a1
commit d097eea3a8
4 changed files with 9 additions and 6 deletions

View File

@@ -117,12 +117,12 @@ class DynamicPropertyRegistrarIntegrationTests {
// context which further ensures that the dynamic "api.url" property is
// available to all standard singleton beans.
@Bean
DynamicPropertyRegistrar apiServerProperties1(ApiServer apiServer) {
DynamicPropertyRegistrar apiPropertiesRegistrar1(ApiServer apiServer) {
return registry -> registry.add(API_URL_1, () -> apiServer.getUrl() + "/1");
}
@Bean
DynamicPropertyRegistrar apiServerProperties2(ApiServer apiServer) {
DynamicPropertyRegistrar apiPropertiesRegistrar2(ApiServer apiServer) {
return registry -> registry.add(API_URL_2, () -> apiServer.getUrl() + "/2");
}

View File

@@ -112,7 +112,7 @@ class DynamicPropertySourceIntegrationTests {
static class Config {
@Bean
DynamicPropertyRegistrar magicWordProperties() {
DynamicPropertyRegistrar magicPropertiesRegistrar() {
return registry -> registry.add(MAGIC_WORD, () -> "enigma");
}