Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
com.google.inject.servlet |
Servlet API scopes, bindings and registration; this extension requires
guice-servlet.jar . |
Modifier and Type | Class | Description |
---|---|---|
interface |
Singleton |
Apply this to implementation classes when you want only one instance (per
Injector ) to be
reused for all injections for that binding. |
Modifier and Type | Class | Description |
---|---|---|
interface |
RequestScoped |
Apply this to implementation classes when you want one instance per request.
|
interface |
SessionScoped |
Apply this to implementation classes when you want one instance per session.
|
Copyright © 2006–2018 Google, Inc.. All rights reserved.