| Modifier and Type | Field and Description |
|---|---|
| private final InjectorImpl | |
| private InternalFactory | |
| pack-priv final Key | |
| private final ProvisionListenerStackCallback |
| Access | Constructor and Description |
|---|---|
| pack-priv | BoundProviderFactory(InjectorImpl injector, Key<? extends Provider<? extends T>> providerKey, Object source, ProvisionListenerStackCallback<T> provisionCallback)
|
| Modifier and Type | Method 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. |
| public void | notify(Errors errors)
Implements com. |
| protected T | provision(Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
Overrides com. |
| public String |
| injector | back to summary |
|---|---|
| private final InjectorImpl injector | |
| providerFactory | back to summary |
|---|---|
| private InternalFactory<? extends Provider<? extends T>> providerFactory | |
| providerKey | back to summary |
|---|---|
| pack-priv final Key<? extends Provider<? extends T>> providerKey | |
| provisionCallback | back to summary |
|---|---|
| private final ProvisionListenerStackCallback<T> provisionCallback | |
| BoundProviderFactory | back to summary |
|---|---|
| pack-priv BoundProviderFactory(InjectorImpl injector, Key<? extends Provider<? extends T>> providerKey, Object source, ProvisionListenerStackCallback<T> provisionCallback) | |
| get | back to summary |
|---|---|
| public T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException Implements com. Doc from com. Creates an object to be injected.
| |
| notify | back to summary |
|---|---|
| public void notify(Errors errors) Implements com. Doc from com. Notifies that creation should happen.
| |
| provision | back to summary |
|---|---|
| protected T provision(Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext) throws InternalProvisionException Overrides com. Doc from com. Provisions a new instance. Subclasses should override this to catch exceptions and rethrow as ErrorsExceptions.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |