public class InjectionManager extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
InjectionManager.InjectClass
Prototype for the multi-threaded version of inject().
|
protected static class |
InjectionManager.InjectContext |
protected class |
InjectionManager.InjectField |
protected class |
InjectionManager.InjectFields |
protected class |
InjectionManager.InjectMethod |
protected class |
InjectionManager.InjectMethods |
Constructor and Description |
---|
InjectionManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowInjection(Method method,
Class<?>[] paramTypes)
jsr-330 rules are very forgiving.
|
protected void |
error_injectionException(InjectionResolver target,
Annotation inject,
AnnotatedElement injectionPoint,
Throwable e) |
protected void |
error_InjectMethodIsNotVoid(Method method) |
void |
inject(Object component,
Class type,
InjectionResolver... targets)
Initializes the component by performing injection.
|
void |
inject(Object component,
ExecutorService es,
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,
Class type,
InjectionResolver... targets)
Initializes the component by performing injection.
|
public void inject(Object component, InjectionResolver... targets)
component
- component instance to injectonBehalfOf
- the inhabitant to do injection on behalf oftargets
- the injection resolvers to resolve all injection pointsComponentException
- if injection failed for some reason.public void inject(Object component, 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 pointsComponentException
- 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 pointsComponentException
- if injection failed for some reason.protected void syncDoInject(Object component, 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 pointsComponentException
- if injection failed for some reason.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)
Copyright © 2018. All rights reserved.