Top Description Methods
com.google.inject

public Interface Provider<T>

extends Provider<T>
Known Direct Subinterfaces
com.google.inject.spi.ProviderWithDependencies, com.google.inject.spi.ProviderWithExtensionVisitor
Known Direct Implementers
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory, com.google.inject.internal.ProviderToInternalFactoryAdapter, com.google.inject.internal.InjectorShell.InjectorFactory, com.google.inject.internal.InjectorShell.LoggerFactory, com.google.inject.util.Providers.ConstantProvider, com.google.inject.util.Providers.GuicifiedJakartaProvider
Type Parameters
<T>
the type of object this provides

An object capable of providing instances of type T. Providers are used in numerous ways by Guice:
Author
[email protected] (Bob Lee)

Method Summary

Modifier and TypeMethod and Description
public T
get()

Redeclares jakarta.inject.Provider.get.

Provides an instance of T.

Method Detail

getback to summary
public T get()

Redeclares jakarta.inject.Provider.get.

Provides an instance of T.

Returns:T

Doc from jakarta.inject.Provider.get.

instance of T.

Annotations
@Override
Exceptions
OutOfScopeException:
when an attempt is made to access a scoped object while the scope in question is not currently active
ProvisionException:
if an instance cannot be provided. Such exceptions include messages and throwables to describe why provision failed.