|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvnet.hk2.component.InjectionManager
public class InjectionManager
InjectionManager is responsible for injecting resources into a component. Injection targets are identified by the injection resolver type attribute.
| Constructor Summary | |
|---|---|
InjectionManager()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowInjection(java.lang.reflect.Method method,
java.lang.Class<?>[] paramTypes)
|
protected void |
error_injectionException(InjectionResolver target,
java.lang.annotation.Annotation inject,
java.lang.reflect.AnnotatedElement injectionPoint,
java.lang.Exception e)
|
protected void |
error_InjectMethodHasMultipleParams(java.lang.reflect.Method method)
|
protected void |
error_InjectMethodHasNoParams(java.lang.reflect.Method method)
|
protected void |
error_InjectMethodIsNotVoid(java.lang.reflect.Method method)
|
void |
inject(java.lang.Object component,
java.lang.Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(java.lang.Object component,
InjectionResolver... targets)
Initializes the component by performing injection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InjectionManager()
| Method Detail |
|---|
public void inject(java.lang.Object component,
InjectionResolver... targets)
component - component instance to injecttargets - the injection resolvers to resolve all injection points
ComponentException - if injection failed for some reason.
public void inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
InjectionResolver... targets)
component - component instance to injectonBehalfOf - the inhabitant to do injection on behalf oftargets - the injection resolvers to resolve all injection points
ComponentException - if injection failed for some reason.
public void inject(java.lang.Object component,
java.lang.Class type,
InjectionResolver... targets)
component - component instance to injecttype - component classtargets - the injection resolvers to resolve all injection points
ComponentException - if injection failed for some reason.
public void inject(java.lang.Object component,
Inhabitant<?> onBehalfOf,
java.lang.Class type,
InjectionResolver... targets)
component - component instance to injectonBehalfOf - the inhabitant to do injection on behalf oftype - component classtargets - the injection resolvers to resolve all injection points
ComponentException - if injection failed for some reason.
protected void error_injectionException(InjectionResolver target,
java.lang.annotation.Annotation inject,
java.lang.reflect.AnnotatedElement injectionPoint,
java.lang.Exception e)
protected boolean allowInjection(java.lang.reflect.Method method,
java.lang.Class<?>[] paramTypes)
protected void error_InjectMethodHasMultipleParams(java.lang.reflect.Method method)
protected void error_InjectMethodHasNoParams(java.lang.reflect.Method method)
protected void error_InjectMethodIsNotVoid(java.lang.reflect.Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||