|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface Injector
Defines a simple API for injecting HK2 components
| Method Summary | ||
|---|---|---|
|
inject(Class<T> type)
Instantiate the passed type and injects all the Inject
annotated fields and methods |
|
|
inject(T target)
Injects all the Inject annotated fields and methods
of the passed instance. |
|
| Method Detail |
|---|
<T> T inject(T target)
Inject annotated fields and methods
of the passed instance.
target - the instance to inject
<T> T inject(Class<T> type)
Inject
annotated fields and methods
T - type of the requested instancetype - class of the requested instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||