Type - the type of object to convert to from a map.public interface ParamAwareConverter<Type> extends Converter<Type>
Converter to provide the name of the parameter
to the implementing class. Users who are extending from AbstractConverter
will have no effect on their existing converters. On top of that they will now
have access to the parameter name using the AbstractConverter.getParamName() method.
Users who are directly implementing Converter interface will have to switch to either
ParamAwareConverter or AbstractConverter to get the parameter name.COLON, EMPTY_STRING| Modifier and Type | Method and Description |
|---|---|
Type |
convert(Map<String,Object> convertFrom,
String paramName)
Convert the Map into a user defined object and also expect the param name
|
convert, convertTo, instanceOfTypeType convert(Map<String,Object> convertFrom, String paramName)
convertFrom - the Map to convert fromparamName - the name of the parameter for which this converter is calledConverter.convertTo() class.Copyright © 2014. All rights reserved.