Apache Commons BeanUtils converters
Library provides additional converters for Apache Commons BeanUtils
:
IdentityConverter
: ConvertsIdentity
instances toString
using identity token and back usingTokenIdentity
.UriConverter
: Convertsjava.net.URI
instances.LocaleConverter
: Convertsjava.util.Locale
instances.InstantConverter
: Convertsjava.time.Instant
instances.YearConverter
: Convertsjava.time.Year
instances.YearMonthConverter
: Convertsjava.time.YearMonth
instances.MonthConverter
: Convertsjava.time.Month
instances.MonthDayConverter
: Convertsjava.time.MonthDay
instances.DayOfWeekConverter
: Convertsjava.time.DayOfWeek
instances.LocalDateConverter
: Convertsjava.time.LocalDate
instances.LocalDateTimeConverter
: Convertsjava.time.LocaleDateTime
instances.LocalTimeConverter
: Convertsjava.time.LocalTime
instances.OffsetDateTimeConverter
: Convertsjava.time.OffsetDateTime
instances.OffsetTimeConverter
: Convertsjava.time.OffsetTime
instances.ZonedDateTimeConverter
: Convertsjava.time.ZonedDateTime
instances.ZoneOffsetConverter
: Convertsjava.time.ZoneOffset
instances.DurationConverter
: Convertsjava.time.Duration
instances.PeriodConverter
: Convertsjava.time.Period
instances.
Utility class OrneBeansConverters
allows the bulk registration of those
additional converters through utility methods:
OrneBeansConverters.register();
Bulk registration in custom instances of ConvertUtilsBean
is also supported:
ConvertUtilsBean converter = new ConvertUtilsBean();
// ...
OrneBeansConverters.register(converter);