Uses of Class
io.bootique.di.Key
Packages that use Key
-
Uses of Key in io.bootique.di
Methods in io.bootique.di that return KeyModifier and TypeMethodDescriptionstatic <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) static <T> Key<T>Creates a key for a nameless binding of a given type.static <T> Key<T>Key.get(Class<T> type, Annotation annotationInstance) static <T> Key<T>Key.get(Class<T> type, Class<? extends Annotation> annotationType) Creates a key for a qualified by annotation binding of a given type.static <T> Key<T>Creates a key for a named binding of a given type.Key<?>InjectionTraceElement.getBindingKey()Key.getListOf(Class<T> type, Class<? extends Annotation> qualifier) 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) Key.getMapOf(Class<K> keyType, Class<V> valueType, Class<? extends Annotation> qualifier) Key.getOptionalOf(Key<T> key) Creates Optional<T> version of given keyKey.getOptionalOf(Class<? extends T> type) Key.getSetOf(Class<T> valueType, Class<? extends Annotation> qualifier) Methods in io.bootique.di that return types with arguments of type KeyModifier and TypeMethodDescription<T> Collection<Key<T>>Injector.getKeysByType(Class<T> type) Returns collection ofKeybound to given type, regardless of additional qualifiers (annotations and/or names).Methods in io.bootique.di with parameters of type KeyModifier and TypeMethodDescription<T> BindingBuilder<T>Starts a binding of a specific interface based on a provided binding key.<T> BindingBuilder<T>Binder.bindOptional(Key<T> key) Starts an optional binding of a specific interface based on a provided binding key.<T> DecoratorBuilder<T><T> TInjector.getInstance(Key<T> key) Returns a service instance bound in the container for a specific binding key.Key.getOptionalOf(Key<T> key) Creates Optional<T> version of given key<T> javax.inject.Provider<T>Injector.getProvider(Key<T> key) booleanInjector.hasProvider(Key<?> key) <T> BindingBuilder<T>Start override binding of a specific interface based on a provided binding key.MapBuilder<K,V> Constructors in io.bootique.di with parameters of type Key -
Uses of Key in io.bootique.di.spi
Fields in io.bootique.di.spi declared as KeyMethods in io.bootique.di.spi that return types with arguments of type KeyModifier and TypeMethodDescription<T> Collection<Key<T>>DefaultInjector.getKeysByType(Class<T> type) Methods in io.bootique.di.spi with parameters of type KeyModifier and TypeMethodDescriptionprotected <SubT extends E>
javax.inject.Provider<SubT>DICollectionBuilder.getByKeyProvider(Key<SubT> key) <T> TDefaultInjector.getInstance(Key<T> key) <T> javax.inject.Provider<T>DefaultInjector.getProvider(Key<T> key) booleanDefaultInjector.hasProvider(Key<?> key) Constructors in io.bootique.di.spi with parameters of type Key