| Package | Description |
|---|---|
| com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
| com.google.inject.binder |
Interfaces which make up
Binder's expression language. |
| com.google.inject.internal |
Guice (sounds like "juice")
|
| com.google.inject.spi |
Guice service provider interface
|
| Modifier and Type | Field and Description |
|---|---|
static Scope |
Scopes.NO_SCOPE
No scope; the same as not applying any scope at all.
|
static Scope |
Scopes.SINGLETON
One instance per
Injector. |
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Annotation>,Scope> |
Injector.getScopeBindings()
Returns a map containing all scopes in the injector.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractModule.bindScope(Class<? extends Annotation> scopeAnnotation,
Scope scope) |
protected void |
PrivateModule.bindScope(Class<? extends Annotation> scopeAnnotation,
Scope scope) |
void |
Binder.bindScope(Class<? extends Annotation> annotationType,
Scope scope)
Binds a scope to an annotation.
|
static boolean |
Scopes.isScoped(Binding<?> binding,
Scope scope,
Class<? extends Annotation> scopeAnnotation)
Returns true if
binding has the given scope. |
| Modifier and Type | Method and Description |
|---|---|
void |
ScopedBindingBuilder.in(Scope scope)
See the EDSL examples at
Binder. |
| Modifier and Type | Class and Description |
|---|---|
class |
SingletonScope
One instance per
Injector. |
| Modifier and Type | Method and Description |
|---|---|
Scope |
Scoping.getScopeInstance()
Returns the scope instance, or
null if that isn't known for this instance. |
| Modifier and Type | Method and Description |
|---|---|
Errors |
Errors.duplicateScopes(ScopeBinding existing,
Class<? extends Annotation> annotationType,
Scope scope) |
static Scoping |
Scoping.forInstance(Scope scope) |
void |
AbstractBindingBuilder.in(Scope scope) |
| Modifier and Type | Method and Description |
|---|---|
Scope |
ScopeBinding.getScope() |
| Modifier and Type | Method and Description |
|---|---|
V |
DefaultBindingScopingVisitor.visitScope(Scope scope) |
V |
BindingScopingVisitor.visitScope(Scope scope)
Visit a scope instance.
|
Copyright © 2006–2018 Google, Inc.. All rights reserved.