Top Description Fields Constructors Methods
com.google.inject.internal

pack-priv final Class ExposedKeyFactory<T>

extends Object
implements InternalFactory<T>, CreationListener
Class Inheritance
All Implemented Interfaces
com.google.inject.internal.CreationListener, com.google.inject.internal.InternalFactory
Imports
com.google.inject.Key, com.google.inject.spi.Dependency, .PrivateElements

This factory exists in a parent injector. When invoked, it retrieves its value from a child injector.

Field Summary

Modifier and TypeField and Description
private BindingImpl<T>
private final Key<T>
private final PrivateElements

Constructor Summary

AccessConstructor and Description
pack-priv
ExposedKeyFactory(Key<T> key, PrivateElements privateElements)

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 void
notify(Errors errors)

Implements com.google.inject.internal.CreationListener.notify.

Notifies that creation should happen.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private BindingImpl<T> delegate
keyback to summary
private final Key<T> key
privateElementsback to summary
private final PrivateElements privateElements

Constructor Detail

ExposedKeyFactoryback to summary
pack-priv ExposedKeyFactory(Key<T> key, PrivateElements privateElements)

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
notifyback to summary
public void notify(Errors errors)

Implements com.google.inject.internal.CreationListener.notify.

Doc from com.google.inject.internal.CreationListener.notify.

Notifies that creation should happen.

Annotations
@Override