Uses of Interface
com.google.inject.Scope
-
Packages that use Scope Package Description com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.com.google.inject.binder Interfaces which make upBinder
's expression language.com.google.inject.internal Guice (sounds like "juice")com.google.inject.servlet Servlet API scopes, bindings and registration; this extension requiresguice-servlet.jar
.com.google.inject.spi Guice service provider interfacecom.google.inject.util Helper methods for working with Guice. -
-
Uses of Scope in com.google.inject
Fields in com.google.inject declared as Scope Modifier and Type Field Description static Scope
Scopes. NO_SCOPE
No scope; the same as not applying any scope at all.static Scope
Scopes. SINGLETON
One instance perInjector
.Methods in com.google.inject that return types with arguments of type Scope Modifier and Type Method Description java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,Scope>
Injector. getScopeBindings()
Returns a map containing all scopes in the injector.Methods in com.google.inject with parameters of type Scope Modifier and Type Method Description protected void
AbstractModule. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, Scope scope)
void
Binder. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)
Binds a scope to an annotation.protected void
PrivateModule. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, Scope scope)
static boolean
Scopes. isScoped(Binding<?> binding, Scope scope, java.lang.Class<? extends java.lang.annotation.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 Modifier and Type Method Description void
ScopedBindingBuilder. in(Scope scope)
See the EDSL examples atBinder
. -
Uses of Scope in com.google.inject.internal
Classes in com.google.inject.internal that implement Scope Modifier and Type Class Description class
SingletonScope
One instance perInjector
.Methods in com.google.inject.internal that return Scope Modifier and Type Method Description Scope
Scoping. 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 Scope Modifier and Type Method Description java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,Scope>
InjectorImpl. getScopeBindings()
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,Scope>
InternalInjectorCreator.ToolStageInjector. getScopeBindings()
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,Scope>
InheritingState. getScopes()
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,Scope>
State. getScopes()
Returns all the scope bindings at this level and parent levels.Methods in com.google.inject.internal with parameters of type Scope Modifier and Type Method Description Errors
Errors. duplicateScopes(ScopeBinding existing, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)
static Scoping
Scoping. forInstance(Scope scope)
void
AbstractBindingBuilder. in(Scope scope)
java.lang.Object
Indexer. visitScope(Scope scope)
-
Uses of Scope in com.google.inject.servlet
Classes in com.google.inject.servlet that implement Scope Modifier and Type Class Description private static class
ServletScopes.RequestScope
private static class
ServletScopes.SessionScope
Fields in com.google.inject.servlet declared as Scope Modifier and Type Field Description static Scope
ServletScopes. REQUEST
HTTP servlet request scope.static Scope
ServletScopes. SESSION
HTTP session scope. -
Uses of Scope in com.google.inject.spi
Fields in com.google.inject.spi declared as Scope Modifier and Type Field Description private Scope
ScopeBinding. scope
Methods in com.google.inject.spi that return Scope Modifier and Type Method Description Scope
ScopeBinding. getScope()
Methods in com.google.inject.spi with parameters of type Scope Modifier and Type Method Description void
Elements.RecordingBinder. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)
V
BindingScopingVisitor. visitScope(Scope scope)
Visit a scope instance.V
DefaultBindingScopingVisitor. visitScope(Scope scope)
Constructors in com.google.inject.spi with parameters of type Scope Constructor Description ScopeBinding(java.lang.Object source, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)
-
Uses of Scope in com.google.inject.util
Methods in com.google.inject.util that return Scope Modifier and Type Method Description private Scope
Modules.OverrideModule. getScopeInstanceOrNull(Binding<?> binding)
-