T
- public class DefaultInjector<T> extends Object implements Injector<T>
Inject
-annotated fields and calls CDI initializer methods.Constructor and Description |
---|
DefaultInjector(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
List<Set<MethodInjectionPoint<?,?>>> |
getInitializerMethods() |
List<Set<FieldInjectionPoint<?,?>>> |
getInjectableFields() |
void |
inject(T instance,
CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
InjectionTarget<T> injectionTarget) |
static <T> DefaultInjector<T> |
of(EnhancedAnnotatedType<T> type,
Bean<T> bean,
BeanManagerImpl beanManager) |
void |
registerInjectionPoints(Set<InjectionPoint> injectionPoints)
Add field/parameter injection points to the set of injection points of an InjectionTarget.
|
public DefaultInjector(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
public static <T> DefaultInjector<T> of(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
public void registerInjectionPoints(Set<InjectionPoint> injectionPoints)
Injector
Producer.getInjectionPoints()
.registerInjectionPoints
in interface Injector<T>
public void inject(T instance, CreationalContext<T> ctx, BeanManagerImpl manager, SlimAnnotatedType<T> type, InjectionTarget<T> injectionTarget)
public List<Set<FieldInjectionPoint<?,?>>> getInjectableFields()
getInjectableFields
in interface Injector<T>
public List<Set<MethodInjectionPoint<?,?>>> getInitializerMethods()
getInitializerMethods
in interface Injector<T>
Copyright © 2014. All Rights Reserved.