hprose.io.convert.java8.ConverterLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hprose-java Show documentation
Show all versions of hprose-java Show documentation
Hprose is a High Performance Remote Object Service Engine.
It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.
Hprose supports many programming languages, for example:
* AAuto Quicker
* ActionScript
* ASP
* C++
* Dart
* Delphi/Free Pascal
* dotNET(C#, Visual Basic...)
* Golang
* Java
* JavaScript
* Node.js
* Objective-C
* Perl
* PHP
* Python
* Ruby
* ...
Through Hprose, You can conveniently and efficiently intercommunicate between those programming languages.
This project is the implementation of Hprose for Java.
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* ConverterLoader.java *
* *
* ConverterLoader class for Java. *
* *
* LastModified: Aug 6, 2016 *
* Author: Ma Bingyao *
* *
\**********************************************************/
package hprose.io.convert.java8;
import hprose.io.convert.ConverterFactory;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.MonthDay;
import java.time.OffsetDateTime;
import java.time.OffsetTime;
import java.time.Period;
import java.time.Year;
import java.time.YearMonth;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
public final class ConverterLoader {
static {
ConverterFactory.register(LocalDate.class, LocalDateConverter.instance);
ConverterFactory.register(LocalTime.class, LocalTimeConverter.instance);
ConverterFactory.register(LocalDateTime.class, LocalDateTimeConverter.instance);
ConverterFactory.register(OffsetTime.class, OffsetTimeConverter.instance);
ConverterFactory.register(OffsetDateTime.class, OffsetDateTimeConverter.instance);
ConverterFactory.register(ZonedDateTime.class, ZonedDateTimeConverter.instance);
ConverterFactory.register(Duration.class, DurationConverter.instance);
ConverterFactory.register(Instant.class, InstantConverter.instance);
ConverterFactory.register(MonthDay.class, MonthDayConverter.instance);
ConverterFactory.register(Period.class, PeriodConverter.instance);
ConverterFactory.register(Year.class, YearConverter.instance);
ConverterFactory.register(YearMonth.class, YearMonthConverter.instance);
ConverterFactory.register(ZoneId.class, ZoneIdConverter.instance);
ConverterFactory.register(ZoneOffset.class, ZoneOffsetConverter.instance);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy