Package liquibase.configuration
Interface ConfiguredValueModifier<DataType>
- All Superinterfaces:
Plugin
Provides a way for
LiquibaseConfiguration
to modify configured values.
After all the ConfigurationValueProvider
s have been checked for a value, all registered ConfiguredValueModifier
s are called in getOrder()
order.-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Returns the order in which modifiers should be run.default String
Called to potentially override the given value.void
override
(ConfiguredValue<DataType> object) Called to potentially override the givenConfiguredValue
.
-
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
Called to potentially override the givenConfiguredValue
. Implementations can use any information from the passedConfiguredValue
, including calling getProvidedValue() to determine keys used, format of the value, etc. If an implementation wants to modify the value, it should callConfiguredValue.override(ProvidedValue)
-
override
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
-