|
||||||||||
| 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(Class<T> type)
Get an instance of given type from context. |
|
void |
injectMembers(Object targetInstance)
Execute injection of fields on given targetInstance |
|
void |
injectStatic(Class<?> targetClass)
Execute injection of static fields on given targetClass. |
|
| Method Detail |
|---|
@Nonnull
<T> T getInstance(@Nonnull
Class<T> type)
T - type paramtype - type of the requested instance
IllegalArgumentException - if instantiating given class according to JSR-330 rules was impossible
void injectStatic(@Nonnull
Class<?> targetClass)
targetClass - class to inject into
void injectMembers(@Nonnull
Object targetInstance)
targetInstance - instance to inject into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||