Class TemporalConverter
- java.lang.Object
-
- org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
-
- org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter
-
- org.codehaus.plexus.component.configurator.converters.basic.TemporalConverter
-
- All Implemented Interfaces:
ConfigurationConverter
public class TemporalConverter extends AbstractBasicConverter
Supports type conversion intojava.time
classes. The supported patterns of the usedDateTimeFormatter
is either- ISO-8601 extended offset date-time-format (
DateTimeFormatter.ISO_OFFSET_DATE_TIME
) or yyyy-MM-dd HH:mm:ss[[a][.S [a]]
-
-
Constructor Summary
Constructors Constructor Description TemporalConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(Class<?> type)
protected Object
fromString(String str, Class<?> type)
-
Methods inherited from class org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter
fromConfiguration, fromExpression, fromString
-
Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
failIfNotTypeCompatible, fromConfiguration, fromExpression, fromXML, getClassForImplementationHint, instantiateObject
-
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class<?> type)
-
fromString
protected final Object fromString(String str, Class<?> type) throws ComponentConfigurationException
- Overrides:
fromString
in classAbstractBasicConverter
- Throws:
ComponentConfigurationException
-
-