public interface ConfigurationValueConverter<DataType>
ConfigurationDefinition.getCurrentConfiguredValue()
to translate whatever object type a ConfigurationValueProvider
is returning
into the object type the definition uses.Modifier and Type | Field and Description |
---|---|
static ConfigurationValueConverter<Class> |
CLASS |
static ConfigurationValueConverter<Level> |
LOG_LEVEL
Standard value -> java.util.logging.Level converter
|
static ConfigurationValueConverter<String> |
STRING |
Modifier and Type | Method and Description |
---|---|
DataType |
convert(Object value)
Converts an arbitrary object into the correct type.
|
static final ConfigurationValueConverter<Level> LOG_LEVEL
static final ConfigurationValueConverter<String> STRING
static final ConfigurationValueConverter<Class> CLASS
DataType convert(Object value) throws IllegalArgumentException
IllegalArgumentException
- if the value cannot be parsed or is an invalid value.Copyright © 2023 Liquibase.org. All rights reserved.