Uses of Class
io.activej.inject.binding.Binding
Packages that use Binding
Package
Description
-
Uses of Binding in io.activej.inject
Methods in io.activej.inject that return BindingModifier and TypeMethodDescription@Nullable Binding<?>Injector.getBinding(Key<?> key) @Nullable Binding<?>Injector.getBinding(Class<?> type) Methods in io.activej.inject that return types with arguments of type BindingModifier and TypeMethodDescriptionInjector.ScopeLocalData.bindings()Returns the value of thebindingsrecord component.Injector.getBindings()This method returns bindings for current scopeInjector.getBindingsTrie()This method returns a trie of bindingsMethod parameters in io.activej.inject with type arguments of type BindingModifier 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.Constructor parameters in io.activej.inject with type arguments of type BindingModifierConstructorDescriptionScopeLocalData(Scope[] scope, Map<Key<?>, Binding<?>> bindings, Map<Key<?>, CompiledBinding<?>> compiledBindings, Map<Key<?>, Integer> slotMapping, int slots, CompiledBinding<?>[] eagerSingletons) Creates an instance of aScopeLocalDatarecord class. -
Uses of Binding in io.activej.inject.binding
Subclasses of Binding in io.activej.inject.bindingModifier and TypeClassDescriptionstatic classstatic classstatic classBindings.BindingToConstructor2<R,T1, T2> static classBindings.BindingToConstructor3<R,T1, T2, T3> static classBindings.BindingToConstructor4<R,T1, T2, T3, T4> static classBindings.BindingToConstructor5<R,T1, T2, T3, T4, T5> static classBindings.BindingToConstructor6<R,T1, T2, T3, T4, T5, T6> static classstatic classfinal classBindingToKey<T>Methods in io.activej.inject.binding that return BindingModifier and TypeMethodDescriptionBinding.addDependencies(Key<?>... extraDependencies) Binding.addDependencies(Class<?>... extraDependencies) Binding.addDependencies(Set<Key<?>> extraDependencies) Binding.as(BindingType type) Binding.at(@Nullable LocationInfo location) BindingGenerator.generate(BindingLocator bindings, Scope[] scope, Key<T> key) Binding.initializeWith(BindingInitializer<T> bindingInitializer) Binding.mapDependency(Key<K> dependency, Function<? super K, ? extends K> fn) Binding.mapDependency(Class<K> dependency, Function<? super K, ? extends K> fn) <R> Binding<R>Binding.mapInstance(Function<? super T, ? extends R> fn) <R> Binding<R>Binding.mapInstance(List<Key<?>> dependencies, BiFunction<Object[], ? super T, ? extends R> fn) Binding.onDependency(Key<K> dependency, Consumer<? super K> consumer) Binding.onDependency(Class<K> dependency, Consumer<? super K> consumer) Binding.onInstance(Consumer<? super T> consumer) static <R> Binding<R>Binding.to(TupleConstructor0<R> constructor) static <T1,R> Binding<R> Binding.to(TupleConstructor1<T1, R> constructor, Key<T1> dependency1) static <T1,R> Binding<R> Binding.to(TupleConstructor1<T1, R> constructor, Class<T1> dependency1) static <T1,T2, R> Binding<R> Binding.to(TupleConstructor2<T1, T2, R> constructor, Key<T1> dependency1, Key<T2> dependency2) static <T1,T2, R> Binding<R> Binding.to(TupleConstructor2<T1, T2, R> constructor, Class<T1> dependency1, Class<T2> dependency2) static <T1,T2, T3, R>
Binding<R>Binding.to(TupleConstructor3<T1, T2, T3, R> constructor, Key<T1> dependency1, Key<T2> dependency2, Key<T3> dependency3) static <T1,T2, T3, R>
Binding<R>Binding.to(TupleConstructor3<T1, T2, T3, R> constructor, Class<T1> dependency1, Class<T2> dependency2, Class<T3> dependency3) static <T1,T2, T3, T4, R>
Binding<R>Binding.to(TupleConstructor4<T1, T2, T3, T4, R> constructor, Key<T1> dependency1, Key<T2> dependency2, Key<T3> dependency3, Key<T4> dependency4) static <T1,T2, T3, T4, R>
Binding<R>Binding.to(TupleConstructor4<T1, T2, T3, T4, R> constructor, Class<T1> dependency1, Class<T2> dependency2, Class<T3> dependency3, Class<T4> dependency4) static <T1,T2, T3, T4, T5, R>
Binding<R>Binding.to(TupleConstructor5<T1, T2, T3, T4, T5, R> constructor, Key<T1> dependency1, Key<T2> dependency2, Key<T3> dependency3, Key<T4> dependency4, Key<T5> dependency5) static <T1,T2, T3, T4, T5, R>
Binding<R>Binding.to(TupleConstructor5<T1, T2, T3, T4, T5, R> constructor, Class<T1> dependency1, Class<T2> dependency2, Class<T3> dependency3, Class<T4> dependency4, Class<T5> dependency5) static <T1,T2, T3, T4, T5, T6, R>
Binding<R>Binding.to(TupleConstructor6<T1, T2, T3, T4, T5, T6, R> constructor, Key<T1> dependency1, Key<T2> dependency2, Key<T3> dependency3, Key<T4> dependency4, Key<T5> dependency5, Key<T6> dependency6) static <T1,T2, T3, T4, T5, T6, R>
Binding<R>Binding.to(TupleConstructor6<T1, T2, T3, T4, T5, T6, R> constructor, Class<T1> dependency1, Class<T2> dependency2, Class<T3> dependency3, Class<T4> dependency4, Class<T5> dependency5, Class<T6> dependency6) static <R> Binding<R>Binding.to(TupleConstructorN<R> constructor, Key<?>[] dependencies) static <R> Binding<R>Binding.to(TupleConstructorN<R> constructor, Class<?>[] types) static <T> Binding<T>static <T> Binding<T>static <T> Binding<T>Binding.toInstance(T instance) BindingTransformer.transform(BindingLocator bindings, Scope[] scope, Key<T> key, Binding<T> binding) Methods in io.activej.inject.binding with parameters of type BindingModifier and TypeMethodDescriptionstatic DIExceptionDIException.cannotConstruct(Key<?> key, @Nullable Binding<?> binding) BindingTransformer.transform(BindingLocator bindings, Scope[] scope, Key<T> key, Binding<T> binding) Method parameters in io.activej.inject.binding with type arguments of type Binding -
Uses of Binding in io.activej.inject.impl
Methods in io.activej.inject.impl that return BindingModifier and TypeMethodDescription<T> @Nullable Binding<T>Retrieves existing binding for given key or tries to recursively generate it from knowngenerators.Methods in io.activej.inject.impl that return types with arguments of type BindingModifier 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.Method parameters in io.activej.inject.impl with type arguments of type BindingModifier 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).Preprocessor.collectCycles(Map<Key<?>, Binding<?>> bindings) This method performs a simple recursive DFS on given binding graph and returns all found cycles.@Nullable StringPreprocessor.ErrorHint.getHintFor(Map.Entry<Key<?>, Binding<?>> keybind, Key<?> missing, Set<Key<?>> upperKnown, Trie<Scope, Map<Key<?>, Binding<?>>> bindings) @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 Binding in io.activej.inject.module
Methods in io.activej.inject.module that return types with arguments of type BindingModifier and TypeMethodDescriptionAbstractModule.getBindings()Module.getBindings()SimpleModule.getBindings()Methods in io.activej.inject.module with parameters of type BindingModifier and TypeMethodDescriptionprotected final <S,T extends S>
voidAbstractModule.bindIntoSet(Key<S> setOf, Binding<T> binding) This is a helper method that provides a functionality similar toProvidesIntoSet.<S,T extends S>
ModuleBuilderModuleBuilder.bindIntoSet(Key<S> setOf, Binding<T> binding) This is a helper method that provides a functionality similar toProvidesIntoSet.<S,E extends S>
ModuleBuilderModuleBuilderImpl.bindIntoSet(Key<S> setOf, Binding<E> binding) Sets a binding which would be bound to a given key and added to the binding graph trieMethod parameters in io.activej.inject.module with type arguments of type BindingModifier 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 multibindersConstructor parameters in io.activej.inject.module with type arguments of type BindingModifierConstructorDescriptionSimpleModule(Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindings, Map<KeyPattern<?>, Set<BindingTransformer<?>>> transformers, Map<KeyPattern<?>, Set<BindingGenerator<?>>> generators, Map<Key<?>, Multibinder<?>> multibinders) -
Uses of Binding in io.activej.inject.util
Methods in io.activej.inject.util that return BindingModifier and TypeMethodDescriptionstatic <T> Binding<T>ReflectionUtils.bindingFromConstructor(Key<T> key, Constructor<T> constructor) static <T> Binding<T>ReflectionUtils.bindingFromMethod(@Nullable Object module, Method method) ReflectionUtils.TemplatedProviderGenerator.generate(BindingLocator bindings, Scope[] scope, Key<Object> key) static <T> @Nullable Binding<T>ReflectionUtils.generateConstructorBinding(Key<T> key) static <T> @Nullable Binding<T>ReflectionUtils.generateImplicitBinding(Key<T> key) Methods in io.activej.inject.util that return types with arguments of type BindingMethods in io.activej.inject.util with parameters of type BindingMethod parameters in io.activej.inject.util with type arguments of type BindingModifier and TypeMethodDescriptionstatic StringMakes a GraphViz graph representation of the binding graph.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.