org.sonatype.guice.plexus.converters
Class PlexusDateTypeConverter

java.lang.Object
  extended by com.google.inject.matcher.AbstractMatcher<com.google.inject.TypeLiteral<?>>
      extended by org.sonatype.guice.plexus.converters.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.Module

TypeConverter Module that converts Plexus formatted date strings into Dates.


Constructor Summary
PlexusDateTypeConverter()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.google.inject.matcher.AbstractMatcher
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusDateTypeConverter

public PlexusDateTypeConverter()
Method Detail

configure

public void configure(com.google.inject.Binder binder)
Specified by:
configure in interface com.google.inject.Module

matches

public boolean matches(com.google.inject.TypeLiteral<?> type)
Specified by:
matches in interface com.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:
convert in interface com.google.inject.spi.TypeConverter


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.