|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Provider | |
---|---|
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-jndi-2.0.jar . |
com.google.inject.binder | Interfaces which make up Binder 's
expression language. |
com.google.inject.jndi | JNDI integration; this extension requires guice-jndi-2.0.jar . |
com.google.inject.spi | Guice service provider interface |
com.google.inject.spring | Spring integration; this extension requires guice-spring-2.0.jar . |
com.google.inject.util | Helper methods for working with Guice. |
Uses of Provider in com.google.inject |
---|
Methods in com.google.inject that return Provider | ||
---|---|---|
Provider<T> |
Binding.getProvider()
Returns the scoped provider guice uses to fulfill requests for this binding. |
|
protected
|
PrivateModule.getProvider(Class<T> type)
|
|
|
Injector.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given type. |
|
|
Binder.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type. |
|
protected
|
AbstractModule.getProvider(Class<T> type)
|
|
protected
|
PrivateModule.getProvider(Key<T> key)
|
|
|
Injector.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
|
|
Binder.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
|
protected
|
AbstractModule.getProvider(Key<T> key)
|
|
|
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider. |
Methods in com.google.inject with parameters of type Provider | ||
---|---|---|
|
Scope.scope(Key<T> key,
Provider<T> unscoped)
Scopes a provider. |
Uses of Provider in com.google.inject.assistedinject |
---|
Classes in com.google.inject.assistedinject that implement Provider | |
---|---|
class |
FactoryProvider<F>
Provides a factory that combines the caller's arguments with injector-supplied values to construct objects. |
Methods in com.google.inject.assistedinject that return Provider | ||
---|---|---|
static
|
FactoryProvider.newFactory(Class<F> factoryType,
Class<?> implementationType)
|
|
static
|
FactoryProvider.newFactory(TypeLiteral<F> factoryType,
TypeLiteral<?> implementationType)
|
Uses of Provider in com.google.inject.binder |
---|
Methods in com.google.inject.binder with parameters of type Provider | |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Provider<? extends T> provider)
See the EDSL examples at Binder . |
Method parameters in com.google.inject.binder with type arguments of type Provider | |
---|---|
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Class<? extends Provider<? extends T>> providerType)
See the EDSL examples at Binder . |
ScopedBindingBuilder |
LinkedBindingBuilder.toProvider(Key<? extends Provider<? extends T>> providerKey)
See the EDSL examples at Binder . |
Uses of Provider in com.google.inject.jndi |
---|
Methods in com.google.inject.jndi that return Provider | ||
---|---|---|
static
|
JndiIntegration.fromJndi(Class<T> type,
String name)
Creates a provider which looks up objects in JNDI using the given name. |
Uses of Provider in com.google.inject.spi |
---|
Classes in com.google.inject.spi with type parameters of type Provider | |
---|---|
interface |
ProviderBinding<T extends Provider<?>>
A binding to a Provider that delegates to the binding for the provided type. |
Subinterfaces of Provider in com.google.inject.spi | |
---|---|
interface |
ProviderWithDependencies<T>
A provider with dependencies on other injected types. |
Methods in com.google.inject.spi that return Provider | ||
---|---|---|
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. |
|
|
TypeEncounter.getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type. |
|
|
TypeEncounter.getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key. |
|
Provider<? extends T> |
ProviderInstanceBinding.getProviderInstance()
Returns the user-supplied, unscoped provider. |
Methods in com.google.inject.spi that return types with arguments of type Provider | |
---|---|
Key<? extends Provider<? extends T>> |
ProviderKeyBinding.getProviderKey()
Returns the key used to resolve the provider's binding. |
Methods in com.google.inject.spi with parameters of type Provider | |
---|---|
void |
ProviderLookup.initializeDelegate(Provider<T> delegate)
Sets the actual provider. |
Uses of Provider in com.google.inject.spring |
---|
Methods in com.google.inject.spring that return Provider | ||
---|---|---|
static
|
SpringIntegration.fromSpring(Class<T> type,
String name)
Creates a provider which looks up objects from Spring using the given name. |
Uses of Provider in com.google.inject.util |
---|
Methods in com.google.inject.util that return Provider | ||
---|---|---|
static
|
Providers.of(T instance)
Returns a provider which always provides instance . |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |