Package org.eclipse.sisu.plexus
Class PlexusDateTypeConverter
- java.lang.Object
-
- com.google.inject.matcher.AbstractMatcher<com.google.inject.TypeLiteral<?>>
-
- org.eclipse.sisu.plexus.PlexusDateTypeConverter
-
- All Implemented Interfaces:
com.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>>,com.google.inject.Module,com.google.inject.spi.TypeConverter
public final class PlexusDateTypeConverter extends com.google.inject.matcher.AbstractMatcher<com.google.inject.TypeLiteral<?>> implements com.google.inject.spi.TypeConverter, com.google.inject.ModuleTypeConverterModulethat converts Plexus formatted date strings intoDates.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCONVERSION_ERRORprivate static java.text.DateFormat[]PLEXUS_DATE_FORMATS
-
Constructor Summary
Constructors Constructor Description PlexusDateTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)java.lang.Objectconvert(java.lang.String value, com.google.inject.TypeLiteral<?> toType)booleanmatches(com.google.inject.TypeLiteral<?> type)
-
-
-
Field Detail
-
PLEXUS_DATE_FORMATS
private static final java.text.DateFormat[] PLEXUS_DATE_FORMATS
-
CONVERSION_ERROR
private static final java.lang.String CONVERSION_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
matches
public boolean matches(com.google.inject.TypeLiteral<?> type)
- Specified by:
matchesin interfacecom.google.inject.matcher.Matcher<com.google.inject.TypeLiteral<?>>
-
convert
public java.lang.Object convert(java.lang.String value, com.google.inject.TypeLiteral<?> toType)- Specified by:
convertin interfacecom.google.inject.spi.TypeConverter
-
-