|
||||||||||
| 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(Method method,
Class<?>[] paramTypes)
|
protected void |
error_injectionException(InjectionResolver target,
Annotation inject,
AnnotatedElement injectionPoint,
Exception e)
|
protected void |
error_InjectMethodHasMultipleParams(Method method)
|
protected void |
error_InjectMethodHasNoParams(Method method)
|
protected void |
error_InjectMethodIsNotVoid(Method method)
|
void |
inject(Object component,
Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(Object component,
Inhabitant<?> onBehalfOf,
Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(Object component,
Inhabitant<?> onBehalfOf,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(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(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(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(Object component,
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(Object component,
Inhabitant<?> onBehalfOf,
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,
Annotation inject,
AnnotatedElement injectionPoint,
Exception e)
protected boolean allowInjection(Method method,
Class<?>[] paramTypes)
protected void error_InjectMethodHasMultipleParams(Method method)
protected void error_InjectMethodHasNoParams(Method method)
protected void error_InjectMethodIsNotVoid(Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||