|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
protected class |
InjectionManager.InjectClass
|
protected static class |
InjectionManager.InjectContext
|
protected class |
InjectionManager.InjectField
|
protected class |
InjectionManager.InjectFields
|
protected class |
InjectionManager.InjectMethod
|
protected class |
InjectionManager.InjectMethods
|
| Constructor Summary | |
|---|---|
InjectionManager()
|
|
| Method Summary | |
|---|---|
protected boolean |
allowInjection(Method method,
Class<?>[] paramTypes)
jsr-330 rules are very forgiving. |
protected void |
asyncDoInject(InjectionManager.InjectContext ic)
Prototype for the multi-threaded version of inject(). |
protected void |
error_injectionException(InjectionResolver target,
Annotation inject,
AnnotatedElement injectionPoint,
Throwable e)
|
protected void |
error_InjectMethodIsNotVoid(Method method)
|
protected void |
handleInjectable(Object component,
Object value)
|
void |
inject(Object component,
Class type,
InjectionResolver... targets)
Initializes the component by performing injection. |
void |
inject(Object component,
Inhabitant<?> onBehalfOf,
ExecutorService es,
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. |
protected void |
syncDoInject(Object component,
Inhabitant<?> onBehalfOf,
Class type,
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,
Inhabitant<?> onBehalfOf,
ExecutorService es,
InjectionResolver... targets)
component - component instance to injectonBehalfOf - the inhabitant to do injection on behalf ofes - the ExecutorService to use in order to handle the work loadtargets - 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.
protected void syncDoInject(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 asyncDoInject(InjectionManager.InjectContext ic)
component - onBehalfOf - type - es - targets -
protected void handleInjectable(Object component,
Object value)
protected void error_injectionException(InjectionResolver target,
Annotation inject,
AnnotatedElement injectionPoint,
Throwable e)
protected boolean allowInjection(Method method,
Class<?>[] paramTypes)
protected void error_InjectMethodIsNotVoid(Method method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||