Top Fields Constructors Methods
com.google.inject.internal

pack-priv final Class InternalFactoryToProviderAdapter<T>

extends Object
implements InternalFactory<T>
Class Inheritance
All Implemented Interfaces
com.google.inject.internal.InternalFactory
Static Imports
com.google.common.base.Preconditions.checkNotNull

Author
[email protected] (Bob Lee)

Field Summary

Modifier and TypeField and Description
private final Provider<? extends T>
private final Object

Constructor Summary

AccessConstructor and Description
public
InternalFactoryToProviderAdapter(Provider<? extends T> provider, Object source)

Method Summary

Modifier and TypeMethod and Description
public T
get(InternalContext
of this injection
context
,
Dependency<?> dependency, boolean
true if getting as a result of a linked binding
linked
)

Implements com.google.inject.internal.InternalFactory.get.

Creates an object to be injected.
public String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

providerback to summary
private final Provider<? extends T> provider
sourceback to summary
private final Object source

Constructor Detail

InternalFactoryToProviderAdapterback to summary
public InternalFactoryToProviderAdapter(Provider<? extends T> provider, Object source)

Method Detail

getback to summary
public T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException

Implements com.google.inject.internal.InternalFactory.get.

Doc from com.google.inject.internal.InternalFactory.get.

Creates an object to be injected.

Parameters
context:InternalContext

of this injection

linked:boolean

true if getting as a result of a linked binding

Returns:T

instance that was created

Annotations
@Override
Exceptions
InternalProvisionException:
if a value cannot be provided
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