public class InjectionManager
extends java.lang.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(java.lang.reflect.Method method,
java.lang.Class<?>[] paramTypes)
jsr-330 rules are very forgiving.
|
protected void |
error_injectionException(InjectionResolver target,
java.lang.annotation.Annotation inject,
java.lang.reflect.AnnotatedElement injectionPoint,
java.lang.Throwable e) |
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,
java.util.concurrent.ExecutorService es,
InjectionResolver... targets)
Initializes the component by performing injection.
|
void |
inject(java.lang.Object component,
InjectionResolver... targets)
Initializes the component by performing injection.
|
protected void |
syncDoInject(java.lang.Object component,
java.lang.Class type,
InjectionResolver... targets)
Initializes the component by performing injection.
|
public void inject(java.lang.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(java.lang.Object component,
java.util.concurrent.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(java.lang.Object component,
java.lang.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(java.lang.Object component,
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 pointsComponentException - if injection failed for some reason.protected void error_injectionException(InjectionResolver target, java.lang.annotation.Annotation inject, java.lang.reflect.AnnotatedElement injectionPoint, java.lang.Throwable e)
protected boolean allowInjection(java.lang.reflect.Method method,
java.lang.Class<?>[] paramTypes)
protected void error_InjectMethodIsNotVoid(java.lang.reflect.Method method)
Copyright © 2013 Oracle Corporation. All Rights Reserved.