Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.assistedinject |
Extension for combining factory interfaces with injection; this extension requires
guice-assistedinject-3.0.jar . |
com.google.inject.binder |
Interfaces which make up
Binder 's
expression language. |
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.jndi |
JNDI integration; this extension requires
guice-jndi-3.0.jar . |
com.google.inject.servlet |
Servlet API scopes, bindings and registration; this extension requires
guice-servlet-3.0.jar . |
com.google.inject.spi |
Guice service provider interface
|
com.google.inject.spring |
Spring integration; this extension requires
guice-spring-3.0.jar . |
com.google.inject.util |
Helper methods for working with Guice.
|
Modifier and Type | Method and Description |
---|---|
Provider<T> |
Binding.getProvider()
Returns the scoped provider guice uses to fulfill requests for this
binding.
|
protected <T> Provider<T> |
PrivateModule.getProvider(Class<T> type) |
<T> Provider<T> |
Binder.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.
|
protected <T> Provider<T> |
AbstractModule.getProvider(Class<T> type) |
<T> Provider<T> |
Injector.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given type.
|
protected <T> Provider<T> |
PrivateModule.getProvider(Key<T> key) |
<T> Provider<T> |
Binder.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
protected <T> Provider<T> |
AbstractModule.getProvider(Key<T> key) |
<T> Provider<T> |
Injector.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Method and Description |
---|---|
<T> Provider<T> |
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider.
|
Modifier and Type | Method and Description |
---|---|
static <F> Provider<F> |
FactoryProvider.newFactory(Class<F> factoryType,
Class<?> implementationType)
Deprecated.
|
static <F> Provider<F> |
FactoryProvider.newFactory(TypeLiteral<F> factoryType,
TypeLiteral<?> implementationType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Provider<? extends T> provider)
See the EDSL examples at
Binder . |
Modifier and Type | Class and Description |
---|---|
class |
ProviderMethod<T>
A provider that invokes a method and returns its result.
|
Modifier and Type | Method and Description |
---|---|
Provider<T> |
BindingImpl.getProvider() |
<T> Provider<T> |
SingletonScope.scope(Key<T> key,
Provider<T> creator) |
Modifier and Type | Method and Description |
---|---|
<T> Provider<T> |
SingletonScope.scope(Key<T> key,
Provider<T> creator) |
BindingBuilder<T> |
BindingBuilder.toProvider(Provider<? extends T> provider) |
Modifier and Type | Method and Description |
---|---|
Errors |
Errors.subtypeNotProvided(Class<? extends Provider<?>> providerType,
Class<?> type) |
Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
JndiIntegration.fromJndi(Class<T> type,
String name)
Creates a provider which looks up objects in JNDI using the given name.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterDefinition
Defines a filter mapped to a URI pattern and performs the request filtering for that filter.
|
class |
ServletDefinition
Defines a servlet mapped to a URI pattern and performs the request dispatch to that servlet.
|
Constructor and Description |
---|
AbstractFilterPipeline(Injector injector,
AbstractServletPipeline servletPipeline,
Provider<javax.servlet.ServletContext> servletContext) |
Modifier and Type | Interface and Description |
---|---|
interface |
ProviderBinding<T extends Provider<?>>
A binding to a
Provider that delegates to the binding for the provided type. |
Modifier and Type | Interface and Description |
---|---|
interface |
ProviderWithDependencies<T>
A provider with dependencies on other injected types.
|
interface |
ProviderWithExtensionVisitor<T>
A Provider that is part of an extension which supports a custom
BindingTargetVisitor.
|
Modifier and Type | Method and Description |
---|---|
Provider<T> |
ProviderLookup.getDelegate()
Returns the delegate provider, or
null if it has not yet been initialized. |
Provider<T> |
ProviderLookup.getProvider()
Returns the looked up provider.
|
<T> Provider<T> |
TypeEncounter.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.
|
<T> Provider<T> |
TypeEncounter.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.
|
Provider<? extends T> |
ProviderInstanceBinding.getProviderInstance()
Deprecated.
Use
ProviderInstanceBinding.getUserSuppliedProvider() instead. |
Modifier and Type | Method and Description |
---|---|
void |
ProviderLookup.initializeDelegate(Provider<T> delegate)
Sets the actual provider.
|
Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
SpringIntegration.fromSpring(Class<T> type,
String name)
Creates a provider which looks up objects from Spring using the given name.
|
Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
Providers.guicify(javax.inject.Provider<T> provider)
Returns a Guice-friendly
com.google.inject.Provider for the given
JSR-330 javax.inject.Provider . |
static <T> Provider<T> |
Providers.of(T instance)
Returns a provider which always provides
instance . |
Copyright © 2006–2015 Google, Inc.. All rights reserved.