|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ExperimentalApi public interface InjectionContext
Simple interface for framework components capable of injection of components as described by JSR-330.
| Method Summary | ||
|---|---|---|
|
getInstance(java.lang.Class<T> type)
Get an instance of given type from context. |
|
void |
injectMembers(java.lang.Object targetInstance)
Execute injection of fields on given targetInstance |
|
void |
injectStatic(java.lang.Class<?> targetClass)
Execute injection of static fields on given targetClass. |
|
| Method Detail |
|---|
@Nonnull
<T> T getInstance(@Nonnull
java.lang.Class<T> type)
T - type paramtype - type of the requested instance
java.lang.IllegalArgumentException - if instantiating given class according to JSR-330 rules was impossible
void injectStatic(@Nonnull
java.lang.Class<?> targetClass)
targetClass - class to inject into
void injectMembers(@Nonnull
java.lang.Object targetInstance)
targetInstance - instance to inject into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||