Class DefaultViewToJson
java.lang.Object
com.eoscode.springapitools.resource.DefaultViewToJson
- All Implemented Interfaces:
ViewToJson
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultViewToJson(SpringApiToolsProperties springApiToolsProperties, org.springframework.http.converter.json.MappingJackson2HttpMessageConverter jackson2HttpMessageConverter) -
Method Summary
Modifier and TypeMethodDescription<T> StringtoJson(ViewDefinition viewDefinition, T result) Serialize Object to Json with ViewDefinition supported
-
Field Details
-
LOG
protected final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
DefaultViewToJson
public DefaultViewToJson(SpringApiToolsProperties springApiToolsProperties, org.springframework.http.converter.json.MappingJackson2HttpMessageConverter jackson2HttpMessageConverter)
-
-
Method Details
-
toJson
Serialize Object to Json with ViewDefinition supported- Specified by:
toJsonin interfaceViewToJson- Parameters:
viewDefinition- viewsresult- Object- Returns:
- json
-