InternalFactory for @ProvidedBy bindings.
| Modifier and Type | Field and Description |
|---|---|
| private BindingImpl | |
| private final Key | |
| private final Class | |
| private ProvisionListenerStackCallback | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 | initialize(InjectorImpl injector, Errors errors)
Implements com. |
| protected T | provision(Provider<? extends T> provider, Dependency<?> dependency, ConstructionContext<T> constructionContext)
Overrides com. |
| pack-priv void |
| providerBinding | back to summary |
|---|---|
| private BindingImpl<? extends Provider<T>> providerBinding | |
| providerKey | back to summary |
|---|---|
| private final Key<? extends Provider<T>> providerKey | |
| providerType | back to summary |
|---|---|
| private final Class<? extends Provider<?>> providerType | |
| provisionCallback | back to summary |
|---|---|
| private ProvisionListenerStackCallback<T> provisionCallback | |
| rawType | back to summary |
|---|---|
| private final Class<?> rawType | |
| ProvidedByInternalFactory | back to summary |
|---|---|
| pack-priv ProvidedByInternalFactory(Class<?> rawType, Class<? extends Provider<?>> providerType, Key<? extends Provider<T>> providerKey) | |
| 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.
| |
| initialize | back to summary |
|---|---|
| public void initialize(InjectorImpl injector, Errors errors) throws ErrorsException Implements com. Doc from com. Initializes this binding, throwing any errors if necessary.
| |
| 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.
| |
| setProvisionListenerCallback | back to summary |
|---|---|
| pack-priv void setProvisionListenerCallback(ProvisionListenerStackCallback<T> listener) | |