T - the type of the type literal@FunctionalInterface public interface PropertyConverter<T>
| Modifier and Type | Method | Description |
|---|---|---|
T |
convert(String value,
ConversionContext context) |
Convert the given configuration keys from its String representation into the required target type.
|
T convert(String value, ConversionContext context)
ConversionContext, which also allows to addPropertyValue a list
of supported formats, which is very handy in case a
value could not be converted. This list of supported formats can then shown to the user to give some hints
how a value could be configured.value - configuration key that needs to be convertedcontext - the converter context, not null.ConversionContextCopyright © 2014–2019 Apache Software Foundation. All rights reserved.