| 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 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 |
Injector.getScopeBindings()
Returns a map containing all scopes in the injector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Binder.bindScope(Class
Binds a scope to an annotation.
|
protected void |
AbstractModule.bindScope(Class
|
protected void |
PrivateModule.bindScope(Class
|
static boolean |
Scopes.isScoped(Binding
Returns true if
binding has the given scope.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ScopedBindingBuilder.in(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
|
static Scoping |
Scoping.forInstance(Scope
|
void |
AbstractBindingBuilder.in(Scope
|
| Modifier and Type | Method and Description |
|---|---|
Scope |
ScopeBinding.getScope()
|
| Modifier and Type | Method and Description |
|---|---|
V |
BindingScopingVisitor.visitScope(Scope
Visit a scope instance.
|
V |
DefaultBindingScopingVisitor.visitScope(Scope
|