Uses of Class
io.activej.inject.Scope
Packages that use Scope
Package
Description
-
Uses of Scope in io.activej.inject
Fields in io.activej.inject declared as ScopeMethods in io.activej.inject that return ScopeModifier and TypeMethodDescriptionScope[]Injector.getScope()static ScopeScope.of(Annotation annotation) Creates a Scope from a real (or its custom surrogate impl) annotation instance.static ScopeScope.of(Class<? extends Annotation> annotationType) Creates a Scope from a marker (or stateless) annotation, only identified by its class.Scope[]Injector.ScopeLocalData.scope()Returns the value of thescoperecord component.Methods in io.activej.inject that return types with arguments of type ScopeModifier and TypeMethodDescriptionInjector.getBindingsTrie()This method returns a trie of bindingsMethods in io.activej.inject with parameters of type ScopeModifier 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.Injector.enterScope(Scope scope) Creates an injector that operates on a binding graph at a given prefix (scope) of the binding graph trie and this injector as its parent.Method parameters in io.activej.inject with type arguments of type ScopeModifier 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.Constructors in io.activej.inject with parameters of type ScopeModifierConstructorDescriptionScopeLocalData(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 Scope in io.activej.inject.binding
Methods in io.activej.inject.binding with parameters of type ScopeModifier and TypeMethodDescriptionBindingGenerator.generate(BindingLocator bindings, Scope[] scope, Key<T> key) static DIExceptionDIException.noCachedBinding(Key<?> key, Scope[] scope) BindingTransformer.transform(BindingLocator bindings, Scope[] scope, Key<T> key, Binding<T> binding) -
Uses of Scope in io.activej.inject.impl
Methods in io.activej.inject.impl that return types with arguments of type ScopeModifier 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 ScopeModifier 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 Scope in io.activej.inject.module
Methods in io.activej.inject.module that return types with arguments of type ScopeModifier and TypeMethodDescriptionAbstractModule.getBindings()Module.getBindings()SimpleModule.getBindings()Module.getExports()Module.getImports()Methods in io.activej.inject.module with parameters of type ScopeModifier and TypeMethodDescriptionThe binding being built by this builder will be added to the binding graph trie at a given scope pathThe binding being built by this builder will be added to the binding graph trie at a given scope pathMethod parameters in io.activej.inject.module with type arguments of type ScopeModifier 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 ScopeModifierConstructorDescriptionSimpleModule(Trie<Scope, Map<Key<?>, Set<Binding<?>>>> bindings, Map<KeyPattern<?>, Set<BindingTransformer<?>>> transformers, Map<KeyPattern<?>, Set<BindingGenerator<?>>> generators, Map<Key<?>, Multibinder<?>> multibinders) -
Uses of Scope in io.activej.inject.util
Methods in io.activej.inject.util that return ScopeModifier and TypeMethodDescriptionstatic Scope[]ReflectionUtils.getScope(AnnotatedElement annotatedElement) Scope[]ScopedKey.getScope()Methods in io.activej.inject.util with parameters of type ScopeModifier and TypeMethodDescriptionReflectionUtils.TemplatedProviderGenerator.generate(BindingLocator bindings, Scope[] scope, Key<Object> key) static StringUtils.getScopeDisplayString(Scope[] scope) static ScopedKeystatic ScopedKeyMethod parameters in io.activej.inject.util with type arguments of type ScopeModifier 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.