public final class PlexusDateTypeConverter
extends com.google.inject.matcher.AbstractMatcher<com.google.inject.TypeLiteral<?>>
implements com.google.inject.spi.TypeConverter, com.google.inject.Module
TypeConverter
Module
that converts Plexus formatted date strings into Date
s.Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CONVERSION_ERROR |
private static java.text.DateFormat[] |
PLEXUS_DATE_FORMATS |
Constructor and Description |
---|
PlexusDateTypeConverter() |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
java.lang.Object |
convert(java.lang.String value,
com.google.inject.TypeLiteral<?> toType) |
boolean |
matches(com.google.inject.TypeLiteral<?> type) |
private static final java.text.DateFormat[] PLEXUS_DATE_FORMATS
private static final java.lang.String CONVERSION_ERROR
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
public boolean matches(com.google.inject.TypeLiteral<?> type)
matches
in interface com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>>
public java.lang.Object convert(java.lang.String value, com.google.inject.TypeLiteral<?> toType)
convert
in interface com.google.inject.spi.TypeConverter