Uses of Class
io.activej.inject.util.Trie
Packages that use Trie
Package
Description
-
Uses of Trie in io.activej.inject
Methods in io.activej.inject that return TrieModifier and TypeMethodDescriptionInjector.getBindingsTrie()This method returns a trie of bindingsMethods in io.activej.inject with parameters of type TrieModifier 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.static InjectorThis constructor is a shortcut for threadsafecompilewith no instance overrides and no multibinders, transformers or generators. -
Uses of Trie in io.activej.inject.impl
Methods in io.activej.inject.impl that return TrieModifier 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.Methods in io.activej.inject.impl with parameters of type TrieModifier and TypeMethodDescriptionstatic voidA method that checks binding graph trie completeness, meaning that no binding references a key that is not present at same or lower level of the trie, and that there is no cycles in each scope (cycles between scopes are not possible).@Nullable StringPreprocessor.ErrorHint.getHintFor(Map.Entry<Key<?>, Binding<?>> keybind, Key<?> missing, Set<Key<?>> upperKnown, Trie<Scope, Map<Key<?>, Binding<?>>> bindings) @Nullable StringPreprocessor.MissingKeyHint.getHintFor(Key<?> missing, Set<Key<?>> upperKnown, Trie<Scope, Map<Key<?>, Binding<?>>> bindings) Preprocessor.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 Trie in io.activej.inject.module
Methods in io.activej.inject.module that return TrieModifier and TypeMethodDescriptionAbstractModule.getBindings()Module.getBindings()SimpleModule.getBindings()Module.getExports()Module.getImports()Methods in io.activej.inject.module with parameters of type TrieModifier and TypeMethodDescriptionstatic ModuleCreates amoduleout of given binding graph triestatic ModuleModule.of(Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindings, Map<KeyPattern<?>, Set<BindingTransformer<?>>> transformers, Map<KeyPattern<?>, Set<BindingGenerator<?>>> generators, Map<Key<?>, Multibinder<?>> multibinders) Creates amoduleout of given binding graph trie, transformers, generators and multibindersConstructors in io.activej.inject.module with parameters of type TrieModifierConstructorDescriptionSimpleModule(Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindings, Map<KeyPattern<?>, Set<BindingTransformer<?>>> transformers, Map<KeyPattern<?>, Set<BindingGenerator<?>>> generators, Map<Key<?>, Multibinder<?>> multibinders) -
Uses of Trie in io.activej.inject.util
Methods in io.activej.inject.util that return TrieModifier and TypeMethodDescriptionTrie.computeIfAbsent(K[] path, Function<K, V> f) Trie.computeIfAbsent(K key, Function<K, V> f) Trie.getOrDefault(K key, V defaultValue) static <K,V> Trie<K, V> Trie.leaf(V value) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Trie<K, V> first, Trie<K, V> second) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Trie<K, V> first, Trie<K, V> second, Trie<K, V>... rest) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Collection<Trie<K, V>> bindings) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Stream<Trie<K, V>> bindings) static <K,V> Trie<K, V> Methods in io.activej.inject.util that return types with arguments of type TrieMethods in io.activej.inject.util with parameters of type TrieModifier and TypeMethodDescriptionvoidstatic StringMakes a GraphViz graph representation of the binding graph.static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Trie<K, V> first, Trie<K, V> second) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Trie<K, V> first, Trie<K, V> second, Trie<K, V>... rest) static voidA shortcut for printing the result ofUtils.makeGraphVizGraph(io.activej.inject.util.Trie<io.activej.inject.Scope, java.util.Map<io.activej.inject.Key<?>, io.activej.inject.binding.Binding<?>>>)into the standard output.Method parameters in io.activej.inject.util with type arguments of type TrieModifier and TypeMethodDescriptionstatic <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Collection<Trie<K, V>> bindings) static <K,V> Trie<K, V> Trie.merge(BiConsumer<V, V> merger, V rootPayload, Stream<Trie<K, V>> bindings) static <K,V> Trie<K, V> Constructor parameters in io.activej.inject.util with type arguments of type Trie