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

@@ -67,7 +67,7 @@ package org.springframework.test.context;
* }
*
* @Bean
* DynamicPropertyRegistrar apiServerProperties(ApiServer apiServer) {
* DynamicPropertyRegistrar apiPropertiesRegistrar(ApiServer apiServer) {
* return registry -> registry.add("api.url", apiServer::getUrl);
* }
*
@@ -82,6 +82,9 @@ package org.springframework.test.context;
@FunctionalInterface
public interface DynamicPropertyRegistrar {
/**
* Register dynamic properties in the supplied registry.
*/
void accept(DynamicPropertyRegistry registry);
}