Uses of Class
io.bootique.di.TypeLiteral
Packages that use TypeLiteral
-
Uses of TypeLiteral in io.bootique.di
Methods in io.bootique.di that return TypeLiteralModifier and TypeMethodDescriptionKey.getType()static <T> TypeLiteral<List<T>>TypeLiteral.listOf(TypeLiteral<? extends T> type) Creates TypeLiteral that represents List<T> type.static <T> TypeLiteral<List<T>>Creates TypeLiteral that represents List<T> type.static <K,V> TypeLiteral<Map<K, V>> TypeLiteral.mapOf(TypeLiteral<? extends K> keyType, TypeLiteral<? extends V> valueType) Creates TypeLiteral that represents Map<K, V< type.static <K,V> TypeLiteral<Map<K, V>> Creates TypeLiteral that represents Map<K, V< type.static <T> TypeLiteral<T>static <T> TypeLiteral<T>static <T> TypeLiteral<T>static <T> TypeLiteral<Optional<T>>TypeLiteral.optionalOf(TypeLiteral<? extends T> type) Creates TypeLiteral that represents Optional<T< type.static <T> TypeLiteral<Optional<T>>TypeLiteral.optionalOf(Class<? extends T> type) Creates TypeLiteral that represents Optional<T< type.static <T> TypeLiteral<Set<T>>TypeLiteral.setOf(TypeLiteral<? extends T> valueType) Creates TypeLiteral that represents Set<T< type.static <T> TypeLiteral<Set<T>>Creates TypeLiteral that represents Set<T< type.Methods in io.bootique.di with parameters of type TypeLiteralModifier and TypeMethodDescription<K,V> MapBuilder<K, V> Binder.bindMap(TypeLiteral<K> keyType, TypeLiteral<V> valueType) Starts a binding of a java.util.Map<K, V> distinguished by its keys and values type.<K,V> MapBuilder<K, V> Binder.bindMap(TypeLiteral<K> keyType, TypeLiteral<V> valueType, Class<? extends Annotation> qualifier) Starts a binding of a java.util.Map<K, V> distinguished by its keys type, values type and qualifier annotation.<K,V> MapBuilder<K, V> Binder.bindMap(TypeLiteral<K> keyType, TypeLiteral<V> valueType, String bindingName) Starts a binding of a java.util.Map<K, V> distinguished by its keys type, values type and binding name.<T> SetBuilder<T>Binder.bindSet(TypeLiteral<T> valueType) Starts a binding of a java.util.Set<T> distinguished by its values type.<T> SetBuilder<T>Binder.bindSet(TypeLiteral<T> valueType, Class<? extends Annotation> qualifier) Starts a binding of a java.util.Set<T> distinguished by its values type and qualifier annotation.<T> SetBuilder<T>Binder.bindSet(TypeLiteral<T> valueType, String bindingName) Starts a binding of a java.util.Set<T> distinguished by its values type and binding name.static <T> Key<T>Key.get(TypeLiteral<T> typeLiteral) static <T> Key<T>Key.get(TypeLiteral<T> typeLiteral, Annotation annotationInstance) static <T> Key<T>Key.get(TypeLiteral<T> typeLiteral, Class<? extends Annotation> annotationType) static <T> Key<T>Key.get(TypeLiteral<T> typeLiteral, String bindingName) Key.getMapOf(TypeLiteral<K> keyType, TypeLiteral<V> valueType) Key.getMapOf(TypeLiteral<K> keyType, TypeLiteral<V> valueType, Class<? extends Annotation> qualifier) Key.getMapOf(TypeLiteral<K> keyType, TypeLiteral<V> valueType, String bindingName) static <T> TypeLiteral<List<T>>TypeLiteral.listOf(TypeLiteral<? extends T> type) Creates TypeLiteral that represents List<T> type.static <K,V> TypeLiteral<Map<K, V>> TypeLiteral.mapOf(TypeLiteral<? extends K> keyType, TypeLiteral<? extends V> valueType) Creates TypeLiteral that represents Map<K, V< type.static <T> TypeLiteral<Optional<T>>TypeLiteral.optionalOf(TypeLiteral<? extends T> type) Creates TypeLiteral that represents Optional<T< type.static <T> TypeLiteral<Set<T>>TypeLiteral.setOf(TypeLiteral<? extends T> valueType) Creates TypeLiteral that represents Set<T< type.Constructors in io.bootique.di with parameters of type TypeLiteralModifierConstructorDescriptionprotectedKey(TypeLiteral<T> type, Annotation annotationInstance) protectedKey(TypeLiteral<T> type, Class<? extends Annotation> annotationType) protectedKey(TypeLiteral<T> type, String bindingName)