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

    Modifier and Type
    Method
    Description
    void
    add(String name, Supplier<Object> valueSupplier)
    Add a Supplier for the given property name to this registry.
  • Method Details

    • add

      void add(String name, Supplier<Object> valueSupplier)
      Add a Supplier for the given property name to this registry.
      Parameters:
      name - the name of the property for which the supplier should be added
      valueSupplier - a supplier that will provide the property value on demand