com.fasterxml.jackson.core.json.PackageVersion Java Examples
The following examples show how to use
com.fasterxml.jackson.core.json.PackageVersion.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BQTimeModule.java From bootique with Apache License 2.0 | 6 votes |
public BQTimeModule() { super(PackageVersion.VERSION); // First deserializers // // Instant variants: addDeserializer(Instant.class, InstantDeserializer.INSTANT); addDeserializer(OffsetDateTime.class, InstantDeserializer.OFFSET_DATE_TIME); addDeserializer(ZonedDateTime.class, InstantDeserializer.ZONED_DATE_TIME); // // Other deserializers addDeserializer(Duration.class, DurationDeserializer.INSTANCE); addDeserializer(LocalDateTime.class, LocalDateTimeDeserializer.INSTANCE); addDeserializer(LocalDate.class, LocalDateDeserializer.INSTANCE); addDeserializer(LocalTime.class, LocalTimeDeserializer.INSTANCE); addDeserializer(MonthDay.class, JSR310StringParsableDeserializer.MONTH_DAY); addDeserializer(OffsetTime.class, OffsetTimeDeserializer.INSTANCE); addDeserializer(Period.class, JSR310StringParsableDeserializer.PERIOD); addDeserializer(Year.class, YearDeserializer.INSTANCE); addDeserializer(YearMonth.class, YearMonthDeserializer.INSTANCE); addDeserializer(ZoneId.class, JSR310StringParsableDeserializer.ZONE_ID); addDeserializer(ZoneOffset.class, JSR310StringParsableDeserializer.ZONE_OFFSET); }
Example #2
Source File: CarModule.java From java-master with Apache License 2.0 | 4 votes |
public CarModule() { super(PackageVersion.VERSION); addDeserializer(Car.class, new CarDeserializer(Car.class)); addSerializer(Car.class, new CarSerializer(Car.class)); }
Example #3
Source File: GeneratorBase.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Implemented with standard version number detection algorithm, typically using * a simple generated class, with information extracted from Maven project file * during build. */ @Override public Version version() { return PackageVersion.VERSION; }
Example #4
Source File: ParserBase.java From lams with GNU General Public License v2.0 | votes |
@Override public Version version() { return PackageVersion.VERSION; }
Example #5
Source File: ParserBase.java From openbd-core with GNU General Public License v3.0 | votes |
@Override public Version version() { return PackageVersion.VERSION; }