public class DefaultResultConverter extends Object implements ResultConverter
This class is the default result converter that also acts as a registry for other converters. It will execute the default converters in the following order
| Constructor and Description |
|---|
DefaultResultConverter()
Instantiates the converter and registers the default converters
|
DefaultResultConverter(boolean registerDefaults)
Instantiates the converter
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Invocation invocation,
Object original)
Called when we need to convert the result
|
public DefaultResultConverter()
public DefaultResultConverter(boolean registerDefaults)
registerDefaults - whether or not default converters should be registeredpublic Object convert(Invocation invocation, Object original)
ResultConverterconvert in interface ResultConverterinvocation - the invocation for which the conversion is happeningoriginal - the original valueCopyright © 2014–2016. All rights reserved.