Class DependencyMetadataV21JsonMapper

java.lang.Object
io.spring.initializr.web.mapper.DependencyMetadataV21JsonMapper
All Implemented Interfaces:
DependencyMetadataJsonMapper

public class DependencyMetadataV21JsonMapper extends Object implements DependencyMetadataJsonMapper
A DependencyMetadataJsonMapper handling the metadata format for v2.1.
Author:
Stephane Nicoll
  • Constructor Details

    • DependencyMetadataV21JsonMapper

      public DependencyMetadataV21JsonMapper()
  • Method Details

    • write

      public String write(DependencyMetadata metadata)
      Description copied from interface: DependencyMetadataJsonMapper
      Write a json representation of the specified metadata.
      Specified by:
      write in interface DependencyMetadataJsonMapper
      Parameters:
      metadata - the dependency metadata
      Returns:
      the JSON representation
    • customizeParent

      protected void customizeParent(com.fasterxml.jackson.databind.node.ObjectNode parent, DependencyMetadata metadata)
      Customizes the parent.
      Parameters:
      parent - the parent
      metadata - the metadata