Top Fields Constructors Methods
com.google.inject.internal

pack-priv final Class ProviderToInternalFactoryAdapter<T>

extends Object
implements Provider<T>
Class Inheritance
All Implemented Interfaces
com.google.inject.Provider, jakarta.inject.Provider
Imports
com.google.inject.Provider

Author
[email protected] (Bob Lee)

Field Summary

Modifier and TypeField and Description
private final InjectorImpl
private final InternalFactory<? extends T>

Constructor Summary

AccessConstructor and Description
public
ProviderToInternalFactoryAdapter(InjectorImpl injector, InternalFactory<? extends T> internalFactory)

Method Summary

Modifier and TypeMethod and Description
public T
get()

Implements com.google.inject.Provider.get.

Provides an instance of T.
pack-priv InjectorImpl
getInjector()

Exposed for SingletonScope.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

injectorback to summary
private final InjectorImpl injector
internalFactoryback to summary
private final InternalFactory<? extends T> internalFactory

Constructor Detail

ProviderToInternalFactoryAdapterback to summary
public ProviderToInternalFactoryAdapter(InjectorImpl injector, InternalFactory<? extends T> internalFactory)

Method Detail

getback to summary
public T get()

Implements com.google.inject.Provider.get.

Doc from com.google.inject.Provider.get.

Provides an instance of T.

Returns:T

Doc from jakarta.inject.Provider.get.

instance of T.

Annotations
@Override
getInjectorback to summary
pack-priv InjectorImpl getInjector()

Exposed for SingletonScope.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override