T - the type to inject on.public class ComponentInjector<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
c |
protected InjectableProviderContext |
ipc |
| Constructor and Description |
|---|
ComponentInjector(InjectableProviderContext ipc,
Class<T> c)
Create a component injector.
|
protected final InjectableProviderContext ipc
public ComponentInjector(InjectableProviderContext ipc, 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.