public class ClassConverter extends Object implements PropertyConverter<Class<?>>
Constructor and Description |
---|
ClassConverter() |
Modifier and Type | Method and Description |
---|---|
Class<?> |
convert(String value,
ConversionContext context)
Convert the given configuration keys from its String representation into the required target type.
|
public Class<?> convert(String value, ConversionContext context)
PropertyConverter
convert
in interface PropertyConverter<Class<?>>
value
- configuration key that needs to be convertedcontext
- the ConversionContext
, containing the String value and the requested configuration key.ConversionContext.addSupportedFormats(Class, String...)
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.