The principal public APIs in this package are:
com.google.inject.Inject
com.google.inject.Module
com.google.inject.Binder
com.google.inject.Module to collect these
bindings.
com.google.inject.Provider
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | |
| public interface | Injector
Builds the graphs of objects that make up your application. |
| public interface | MembersInjector<
type to inject members of T>Injects dependencies into the fields and methods on instances of type |
| public interface | |
| public interface | PrivateBinder
Returns a binder whose configuration information is hidden from its environment by default. |
| public interface | |
| public interface | Scope
A scope is a level of visibility that instances provided by Guice may have. |
| Modifier and Type | Annotation and Description |
|---|---|
| public @interface | BindingAnnotation
Annotates annotations which are used for binding. |
| public @interface | |
| public @interface | ImplementedBy
A pointer to the default implementation of a type. |
| public @interface | |
| public @interface | ProvidedBy
A pointer to the default provider type for a type. |
| public @interface | |
| public @interface | RestrictedBindingSource
Annotation restricting the binding of the target type to permitted sources. |
| public @interface | ScopeAnnotation
Annotates annotations which are used for scoping. |
| public @interface |
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | AbstractModule
AbstractModule is a helper class used to add bindings to the Guice injector. |
| public class | ConfigurationException
Thrown when a programming error such as a misplaced annotation, illegal binding, or unsupported scope is found. |
| public class | CreationException
Thrown when errors occur while creating a |
| public class | Guice
The entry point to the Guice framework. |
| public class | |
| public class | OutOfScopeException
Thrown from |
| public abstract class | PrivateModule
A module whose configuration information is hidden from its environment by default. |
| public class | ProvisionException
Indicates that there was a runtime failure while providing an instance. |
| public class | Scopes
Built-in scope implementations. |
| public class |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | Stage
The stage we're running in. |