Uses of Interface
io.activej.inject.binding.Multibinder
Packages that use Multibinder
Package
Description
-
Uses of Multibinder in io.activej.inject
Methods in io.activej.inject with parameters of type MultibinderModifier and TypeMethodDescriptionstatic InjectorInjector.compile(@Nullable Injector parent, Scope[] scope, Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindingsMultimap, Multibinder<?> multibinder, BindingTransformer<?> transformer, BindingGenerator<?> generator) The most full-fledged compile method that allows you to create an Injector of any configuration. -
Uses of Multibinder in io.activej.inject.binding
Methods in io.activej.inject.binding that return MultibinderModifier and TypeMethodDescriptionstatic Multibinder<?>Multibinders.combinedMultibinder(Map<Key<?>, Multibinder<?>> multibinders) Combines all multibinders into one by their type and returns universal multibinder for any key from the map, falling back toMultibinders.errorOnDuplicate()when map contains no multibinder for a given key.static <T> Multibinder<T>Multibinders.errorOnDuplicate()Default multibinder that just throws an exception if there is more than one binding per key.static <T> Multibinder<T>Multibinders.ofBinaryOperator(BinaryOperator<T> binaryOperator) Multibinder that returns a binding that reduces all instances provided by all conflicting bindings using a binary operator.static <T> Multibinder<T>Multibinders.ofReducer(BiFunction<Key<T>, Stream<T>, T> reducerFunction) Multibinder that returns a binding that applies given reducing function to a stream of instances provided by all conflicting bindings.static <K,V> Multibinder<Map<K, V>> Multibinders.toMap()Multibinder that returns a binding for a merged map of maps provided by all conflicting bindings.static <T> Multibinder<Set<T>>Multibinders.toSet()Multibinder that returns a binding for a merged set of sets provided by all conflicting bindings.Method parameters in io.activej.inject.binding with type arguments of type MultibinderModifier and TypeMethodDescriptionstatic Multibinder<?>Multibinders.combinedMultibinder(Map<Key<?>, Multibinder<?>> multibinders) Combines all multibinders into one by their type and returns universal multibinder for any key from the map, falling back toMultibinders.errorOnDuplicate()when map contains no multibinder for a given key. -
Uses of Multibinder in io.activej.inject.impl
Methods in io.activej.inject.impl with parameters of type MultibinderModifier and TypeMethodDescriptionPreprocessor.reduce(Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindings, Multibinder<?> multibinder, BindingTransformer<?> transformer, BindingGenerator<?> generator) This method converts a trie of binding multimaps, that is provided from the modules, into a trie of binding maps on which theInjectorwould actually operate. -
Uses of Multibinder in io.activej.inject.module
Methods in io.activej.inject.module that return types with arguments of type MultibinderModifier and TypeMethodDescriptionfinal Map<Key<?>,Multibinder<?>> AbstractModule.getMultibinders()Map<Key<?>,Multibinder<?>> Module.getMultibinders()Map<Key<?>,Multibinder<?>> SimpleModule.getMultibinders()Methods in io.activej.inject.module with parameters of type MultibinderModifier and TypeMethodDescriptionprotected final <T> voidAbstractModule.multibind(Key<T> key, Multibinder<T> multibinder) Adds amultibinderfor a given key to this module.<T> ModuleBuilderModuleBuilder.multibind(Key<T> key, Multibinder<T> multibinder) Adds amultibinderfor a given key to this module.<E> ModuleBuilderModuleBuilderImpl.multibind(Key<E> key, Multibinder<E> multibinder) -
Uses of Multibinder in io.activej.inject.util
Method parameters in io.activej.inject.util with type arguments of type MultibinderModifier and TypeMethodDescriptionstatic voidUtils.mergeMultibinders(Map<Key<?>, Multibinder<?>> into, Map<Key<?>, Multibinder<?>> from)