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
Supports type conversion into
java.time
classes.
The supported patterns of the used DateTimeFormatter
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class<?> type) protected final 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, fromExpression, fromXML, getClassForImplementationHint, instantiateObject
-
Constructor Details
-
TemporalConverter
public TemporalConverter()
-
-
Method Details
-
canConvert
-
fromString
- Overrides:
fromString
in classAbstractBasicConverter
- Throws:
ComponentConfigurationException
-