Class JodaTimeConverterFactory
java.lang.Object
com.github.joschi.jadconfig.jodatime.JodaTimeConverterFactory
- All Implemented Interfaces:
ConverterFactory
ConverterFactory for holding the Converter classes for Joda-Time support.
Supported Converter types are:
DateTimeFormatterthroughDateTimeFormatterConverterDateTimeZonethroughDateTimeZoneConverterDurationthroughDurationConverterIntervalthroughIntervalConverterPeriodthroughPeriodConverterSecondsthroughSecondsConverterMinutesthroughMinutesConverterHoursthroughHoursConverterDaysthroughDaysConverterWeeksthroughWeeksConverterMonthsthroughMonthsConverterYearsthroughYearsConverter
- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConverter(Class<T> classType) Finds and returns aConverterfor the provided classType.
-
Constructor Details
-
JodaTimeConverterFactory
public JodaTimeConverterFactory()
-
-
Method Details
-
getConverter
Finds and returns aConverterfor the provided classType.- Specified by:
getConverterin interfaceConverterFactory- Type Parameters:
T- Type of theConverterto get- Parameters:
classType- The class type for which to find and return aConverter- Returns:
- A
Converterfor the requested class type
-