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 voidcustomizeParent(tools.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:DependencyMetadataJsonMapperWrite a json representation of the specified metadata.- Specified by:
writein interfaceDependencyMetadataJsonMapper- Parameters:
metadata- the dependency metadata- Returns:
- the JSON representation
-
customizeParent
protected void customizeParent(tools.jackson.databind.node.ObjectNode parent, DependencyMetadata metadata) Customizes the parent.- Parameters:
parent- the parentmetadata- the metadata
-