Top Description Fields Methods
liquibase.configuration

public Interface ConfigurationValueConverter<DataType>

Imports
liquibase.Scope, java.util.logging.Level

Used by ConfigurationDefinition#getCurrentConfiguredValue() to translate whatever object type a ConfigurationValueProvider is returning into the object type the definition uses.

Field Summary

Modifier and TypeField and Description
public static final ConfigurationValueConverter<Class<T>>
public static final ConfigurationValueConverter<Level>
LOG_LEVEL

Standard value -> java.util.logging.Level converter

public static final ConfigurationValueConverter<String>

Method Summary

Modifier and TypeMethod and Description
public DataType
convert(Object value)

Converts an arbitrary object into the correct type.

Field Detail

CLASSback to summary
public static final ConfigurationValueConverter<Class<T>> CLASS
LOG_LEVELback to summary
public static final ConfigurationValueConverter<Level> LOG_LEVEL

Standard value -> java.util.logging.Level converter

STRINGback to summary
public static final ConfigurationValueConverter<String> STRING

Method Detail

convertback to summary
public DataType convert(Object value) throws IllegalArgumentException

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.

Exceptions
IllegalArgumentException:
if the value cannot be parsed or is an invalid value.