public class ConvertersApi extends Object implements ApplicationContextAware
The API for converting objects to target types such as XML.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
asType(Object instance, Class<?> clazz)Converter an instance from one format to another |
|
public ApplicationContext |
getApplicationContext() |
|
public void |
setApplicationContext(ApplicationContext applicationContext) |
Converter an instance from one format to another
instance - The instanceclazz - The type to convert to