Interface ConfiguredValueModifier<DataType>

All Superinterfaces:
Plugin

public interface ConfiguredValueModifier<DataType> extends Plugin
Provides a way for LiquibaseConfiguration to modify configured values. After all the ConfigurationValueProviders have been checked for a value, all registered ConfiguredValueModifiers are called in getOrder() order.
  • Method Details

    • getOrder

      int getOrder()
      Returns the order in which modifiers should be run. Modifiers with a higher order will run after modifiers with a lower order value.
      Returns:
      int
    • override

      void override(ConfiguredValue<DataType> object)
      Called to potentially override the given ConfiguredValue. Implementations can use any information from the passed ConfiguredValue, including calling getProvidedValue() to determine keys used, format of the value, etc. If an implementation wants to modify the value, it should call ConfiguredValue.override(ProvidedValue)
    • override

      default String override(String value)
      Called to potentially override the given value.
      Parameters:
      value - value to override
      Returns:
      the overridden value if it was overridden, or the provided value otherwise