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 ScopeScopes. NO_SCOPENo scope; the same as not applying any scope at all.static ScopeScopes. SINGLETONOne 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 voidAbstractModule. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, Scope scope)voidBinder. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)Binds a scope to an annotation.protected voidPrivateModule. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, Scope scope)static booleanScopes. isScoped(Binding<?> binding, Scope scope, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)Returns true ifbindinghas 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 voidScopedBindingBuilder. 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 classSingletonScopeOne instance perInjector.Methods in com.google.inject.internal that return Scope Modifier and Type Method Description ScopeScoping. getScopeInstance()Returns the scope instance, ornullif 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 ErrorsErrors. duplicateScopes(ScopeBinding existing, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)static ScopingScoping. forInstance(Scope scope)voidAbstractBindingBuilder. in(Scope scope)java.lang.ObjectIndexer. 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 classServletScopes.RequestScopeprivate static classServletScopes.SessionScopeFields in com.google.inject.servlet declared as Scope Modifier and Type Field Description static ScopeServletScopes. REQUESTHTTP servlet request scope.static ScopeServletScopes. SESSIONHTTP 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 ScopeScopeBinding. scopeMethods in com.google.inject.spi that return Scope Modifier and Type Method Description ScopeScopeBinding. getScope()Methods in com.google.inject.spi with parameters of type Scope Modifier and Type Method Description voidElements.RecordingBinder. bindScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, Scope scope)VBindingScopingVisitor. visitScope(Scope scope)Visit a scope instance.VDefaultBindingScopingVisitor. 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 ScopeModules.OverrideModule. getScopeInstanceOrNull(Binding<?> binding)
-