Package liquibase.configuration
Interface ConfigurationValueConverter<DataType>
public interface ConfigurationValueConverter<DataType>
Used by
ConfigurationDefinition.getCurrentConfiguredValue()
to translate whatever object type a ConfigurationValueProvider
is returning
into the object type the definition uses.-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConfigurationValueConverter<Class>
static final ConfigurationValueConverter<Level>
Standard value -> java.util.logging.Level converterstatic final ConfigurationValueConverter<String>
-
Method Summary
-
Field Details
-
LOG_LEVEL
Standard value -> java.util.logging.Level converter -
STRING
-
CLASS
-
-
Method Details
-
convert
Converts an arbitrary object into the correct type. Implementations should be able to handle any type passed them, often types by calling toString() on the incoming value and parsing the string. Normally, a null value will be returned as a null value, but that is up to the implementation.- Throws:
IllegalArgumentException
- if the value cannot be parsed or is an invalid value.
-