Class DefaultViewToJson

java.lang.Object
com.eoscode.springapitools.resource.DefaultViewToJson
All Implemented Interfaces:
ViewToJson

@Component public class DefaultViewToJson extends Object implements ViewToJson
  • 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

      public <T> String toJson(ViewDefinition viewDefinition, T result)
      Serialize Object to Json with ViewDefinition supported
      Specified by:
      toJson in interface ViewToJson
      Parameters:
      viewDefinition - views
      result - Object
      Returns:
      json