Uses of Interface
com.google.inject.Provider
-
Packages that use Provider 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 requiresguice-assistedinject.jar
.com.google.inject.binder Interfaces which make upBinder
's expression language.com.google.inject.jndi JNDI integration; this extension requiresguice-jndi.jar
.com.google.inject.spi Guice service provider interfacecom.google.inject.spring Spring integration; this extension requiresguice-spring.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 Modifier and Type Method Description protected <T> Provider<T>
AbstractModule. getProvider(Key<T> key)
protected <T> Provider<T>
AbstractModule. getProvider(Class<T> type)
<T> Provider<T>
Binder. getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.<T> Provider<T>
Binder. getProvider(Dependency<T> dependency)
Returns the provider used to obtain instances for the given injection key.<T> Provider<T>
Binder. getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.Provider<T>
Binding. getProvider()
Returns the scoped provider guice uses to fulfill requests for this binding.<T> Provider<T>
Injector. getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.<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)
protected <T> Provider<T>
PrivateModule. getProvider(Class<T> type)
<T> Provider<T>
Scope. scope(Key<T> key, Provider<T> unscoped)
Scopes a provider.Methods in com.google.inject with parameters of type Provider Modifier and Type Method Description <T> Provider<T>
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 Modifier and Type Class Description class
FactoryProvider<F>
Deprecated.useFactoryModuleBuilder
instead.Methods in com.google.inject.assistedinject that return Provider Modifier and Type Method Description static <F> Provider<F>
FactoryProvider. newFactory(TypeLiteral<F> factoryType, TypeLiteral<?> implementationType)
Deprecated.static <F> Provider<F>
FactoryProvider. newFactory(Class<F> factoryType, Class<?> implementationType)
Deprecated. -
Uses of Provider in com.google.inject.binder
Methods in com.google.inject.binder with parameters of type Provider Modifier and Type Method Description ScopedBindingBuilder
LinkedBindingBuilder. toProvider(Provider<? extends T> provider)
See the EDSL examples atBinder
. -
Uses of Provider in com.google.inject.jndi
Methods in com.google.inject.jndi that return Provider Modifier and Type Method 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. -
Uses of Provider in com.google.inject.spi
Classes in com.google.inject.spi with type parameters of type Provider Modifier and Type Interface Description interface
ProviderBinding<T extends Provider<?>>
A binding to aProvider
that delegates to the binding for the provided type.Subinterfaces of Provider in com.google.inject.spi Modifier and Type Interface 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.Methods in com.google.inject.spi that return Provider Modifier and Type Method Description Provider<T>
ProviderLookup. getDelegate()
Returns the delegate provider, ornull
if it has not yet been initialized.Provider<T>
ProviderLookup. getProvider()
Returns the looked up provider.<T> Provider<T>
TypeEncounter. getProvider(Key<T> key)
Returns the provider used to obtain instances for the given injection key.<T> Provider<T>
TypeEncounter. getProvider(Class<T> type)
Returns the provider used to obtain instances for the given injection type.Provider<? extends T>
ProviderInstanceBinding. getProviderInstance()
Deprecated.UseProviderInstanceBinding.getUserSuppliedProvider()
instead.Methods in com.google.inject.spi with parameters of type Provider Modifier and Type Method Description 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 Modifier and Type Method 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. -
Uses of Provider in com.google.inject.util
Methods in com.google.inject.util that return Provider Modifier and Type Method Description static <T> Provider<T>
Providers. guicify(Provider<T> provider)
Deprecated.Marked as deprecated as a hint to users that calling this is unnecessary, because the provider is already a guice Provider.static <T> Provider<T>
Providers. guicify(jakarta.inject.Provider<T> provider)
Returns a Guice-friendlycom.google.inject.Provider
for the givenjakarta.inject.Provider
.static <T> Provider<T>
Providers. guicify(javax.inject.Provider<T> provider)
Returns a Guice-friendlycom.google.inject.Provider
for the given JSR-330javax.inject.Provider
.static <T> Provider<T>
Providers. of(T instance)
Returns a provider which always providesinstance
.Methods in com.google.inject.util with parameters of type Provider Modifier and Type Method Description static <T> Provider<T>
Providers. guicify(Provider<T> provider)
Deprecated.Marked as deprecated as a hint to users that calling this is unnecessary, because the provider is already a guice Provider.
-