Package io.spring.initializr.web.mapper
Class DependencyMetadataV21JsonMapper
java.lang.Object
io.spring.initializr.web.mapper.DependencyMetadataV21JsonMapper
- All Implemented Interfaces:
DependencyMetadataJsonMapper
A
DependencyMetadataJsonMapper
handling the metadata format for v2.1.- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
customizeParent
(com.fasterxml.jackson.databind.node.ObjectNode parent, DependencyMetadata metadata) Customizes the parent.write
(DependencyMetadata metadata) Write a json representation of the specified metadata.
-
Constructor Details
-
DependencyMetadataV21JsonMapper
public DependencyMetadataV21JsonMapper()
-
-
Method Details
-
write
Description copied from interface:DependencyMetadataJsonMapper
Write a json representation of the specified metadata.- Specified by:
write
in interfaceDependencyMetadataJsonMapper
- 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 parentmetadata
- the metadata
-