com.rapid7.container.analyzer.docker.util.InstantParserModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-image-analyzer Show documentation
Show all versions of docker-image-analyzer Show documentation
Extracts, parses, and analyzes Docker images into Java objects with JSON mappings.
package com.rapid7.container.analyzer.docker.util;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.datatype.jsr310.PackageVersion;
import java.time.Instant;
public class InstantParserModule extends SimpleModule {
public InstantParserModule() {
super(PackageVersion.VERSION);
addDeserializer(Instant.class, InstantCustomDeserializer.INSTANT);
}
}