Class TypeConverterCache


  • final class TypeConverterCache
    extends java.lang.Object
    Lazy cache of known TypeConverters.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<com.google.inject.TypeLiteral<?>,​com.google.inject.spi.TypeConverter> converterMap  
      private com.google.inject.Injector injector  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeConverterCache​(com.google.inject.Injector injector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.inject.spi.TypeConverter getTypeConverter​(com.google.inject.TypeLiteral<?> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • converterMap

        private final java.util.Map<com.google.inject.TypeLiteral<?>,​com.google.inject.spi.TypeConverter> converterMap
      • injector

        private final com.google.inject.Injector injector
    • Constructor Detail

      • TypeConverterCache

        @Inject
        TypeConverterCache​(com.google.inject.Injector injector)
    • Method Detail

      • getTypeConverter

        public com.google.inject.spi.TypeConverter getTypeConverter​(com.google.inject.TypeLiteral<?> type)