Uses of Interface
com.google.inject.Scope
Packages that use Scope
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Interfaces which make up
Binder
's expression language.Guice (sounds like "juice")
Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar
.Guice service provider interface
Helper methods for working with Guice.
-
Uses of Scope in com.google.inject
Fields in com.google.inject declared as ScopeModifier and TypeFieldDescriptionstatic final Scope
Scopes.NO_SCOPE
No scope; the same as not applying any scope at all.static final Scope
Scopes.SINGLETON
One instance perInjector
.Methods in com.google.inject that return types with arguments of type ScopeModifier and TypeMethodDescriptionMap
<Class<? extends Annotation>, Scope> Injector.getScopeBindings()
Returns a map containing all scopes in the injector.Methods in com.google.inject with parameters of type ScopeModifier and TypeMethodDescriptionprotected void
AbstractModule.bindScope
(Class<? extends Annotation> scopeAnnotation, Scope scope) void
Binder.bindScope
(Class<? extends Annotation> annotationType, Scope scope) Binds a scope to an annotation.protected final void
PrivateModule.bindScope
(Class<? extends Annotation> scopeAnnotation, Scope scope) static boolean
Scopes.isScoped
(Binding<?> binding, Scope scope, Class<? extends Annotation> scopeAnnotation) Returns true ifbinding
has the given scope. -
Uses of Scope in com.google.inject.binder
Methods in com.google.inject.binder with parameters of type Scope -
Uses of Scope in com.google.inject.internal
Classes in com.google.inject.internal that implement ScopeMethods in com.google.inject.internal that return ScopeModifier and TypeMethodDescriptionScoping.getScopeInstance()
Returns the scope instance, ornull
if that isn't known for this instance.Methods in com.google.inject.internal that return types with arguments of type ScopeModifier and TypeMethodDescriptionMap
<Class<? extends Annotation>, Scope> InjectorImpl.getScopeBindings()
Map
<Class<? extends Annotation>, Scope> InternalInjectorCreator.ToolStageInjector.getScopeBindings()
Map
<Class<? extends Annotation>, Scope> InjectorBindingData.getScopes()
Methods in com.google.inject.internal with parameters of type ScopeModifier and TypeMethodDescriptionErrors.duplicateScopes
(ScopeBinding existing, Class<? extends Annotation> annotationType, Scope scope) static Scoping
Scoping.forInstance
(Scope scope) void
Indexer.visitScope
(Scope scope) -
Uses of Scope in com.google.inject.servlet
Classes in com.google.inject.servlet that implement ScopeModifier and TypeClassDescriptionprivate static final class
private static final class
Fields in com.google.inject.servlet declared as Scope -
Uses of Scope in com.google.inject.spi
Fields in com.google.inject.spi declared as ScopeMethods in com.google.inject.spi that return ScopeMethods in com.google.inject.spi with parameters of type ScopeModifier and TypeMethodDescriptionvoid
Elements.RecordingBinder.bindScope
(Class<? extends Annotation> annotationType, Scope scope) BindingScopingVisitor.visitScope
(Scope scope) Visit a scope instance.DefaultBindingScopingVisitor.visitScope
(Scope scope) Constructors in com.google.inject.spi with parameters of type ScopeModifierConstructorDescription(package private)
ScopeBinding
(Object source, Class<? extends Annotation> annotationType, Scope scope) -
Uses of Scope in com.google.inject.util
Methods in com.google.inject.util that return ScopeModifier and TypeMethodDescriptionprivate Scope
Modules.OverrideModule.getScopeInstanceOrNull
(Binding<?> binding)