T - the type to inject on.public class ComponentInjector<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<T> |
c |
protected InjectableProviderContext |
ipc |
| Constructor and Description |
|---|
ComponentInjector(InjectableProviderContext ipc,
java.lang.Class<T> c)
Create a component injector.
|
protected final InjectableProviderContext ipc
protected final java.lang.Class<T> c
public ComponentInjector(InjectableProviderContext ipc, java.lang.Class<T> c)
ipc - the injector provider context to obtain injectables.c - the class of the type to inject on.public void inject(T t)
t - the instance to inject on.Copyright © 2016 Oracle Corporation. All Rights Reserved.