|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.component.InjectionManager
@Deprecated 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
Deprecated. Prototype for the multi-threaded version of inject(). |
protected static class |
InjectionManager.InjectContext
Deprecated. |
protected class |
InjectionManager.InjectField
Deprecated. |
protected class |
InjectionManager.InjectFields
Deprecated. |
protected class |
InjectionManager.InjectMethod
Deprecated. |
protected class |
InjectionManager.InjectMethods
Deprecated. |
Constructor Summary | |
---|---|
InjectionManager()
Deprecated. |
Method Summary | |
---|---|
protected boolean |
allowInjection(Method method,
Class<?>[] paramTypes)
Deprecated. jsr-330 rules are very forgiving. |
protected void |
error_injectionException(InjectionResolver target,
Annotation inject,
AnnotatedElement injectionPoint,
Throwable e)
Deprecated. |
protected void |
error_InjectMethodIsNotVoid(Method method)
Deprecated. |
protected void |
handleInjectable(Object component,
Object value)
Deprecated. |
void |
inject(Object component,
Class type,
InjectionResolver... targets)
Deprecated. Initializes the component by performing injection. |
void |
inject(Object component,
Inhabitant<?> onBehalfOf,
ExecutorService es,
InjectionResolver... targets)
Deprecated. Initializes the component by performing injection. |
void |
inject(Object component,
Inhabitant<?> onBehalfOf,
InjectionResolver... targets)
Deprecated. Initializes the component by performing injection. |
void |
inject(Object component,
InjectionResolver... targets)
Deprecated. Initializes the component by performing injection. |
protected void |
syncDoInject(Object component,
Inhabitant<?> onBehalfOf,
Class type,
InjectionResolver... targets)
Deprecated. 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 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 |