Package org.springframework.test.context
Interface DynamicPropertyRegistry
public interface DynamicPropertyRegistry
Registry used with
@DynamicPropertySource
methods so that they can add properties to the Environment
that have
dynamically resolved values.- Since:
- 5.2.5
- Author:
- Phillip Webb, Sam Brannen
- See Also:
-
Method Summary
-
Method Details
-
add
Add aSupplier
for the given property name to this registry.- Parameters:
name
- the name of the property for which the supplier should be addedvalueSupplier
- a supplier that will provide the property value on demand
-