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,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
Modifier and Type | Method and Description |
---|---|
List<Set<MethodInjectionPoint<?,?>>> |
getInitializerMethods() |
List<Set<FieldInjectionPoint<?,?>>> |
getInjectableFields() |
void |
inject(T instance,
javax.enterprise.context.spi.CreationalContext<T> ctx,
BeanManagerImpl manager,
SlimAnnotatedType<T> type,
javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget) |
static <T> DefaultInjector<T> |
of(EnhancedAnnotatedType<T> type,
javax.enterprise.inject.spi.Bean<T> bean,
BeanManagerImpl beanManager) |
void |
registerInjectionPoints(Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)
Add field/parameter injection points to the set of injection points of an InjectionTarget.
|
public DefaultInjector(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
public static <T> DefaultInjector<T> of(EnhancedAnnotatedType<T> type, javax.enterprise.inject.spi.Bean<T> bean, BeanManagerImpl beanManager)
public void registerInjectionPoints(Set<javax.enterprise.inject.spi.InjectionPoint> injectionPoints)
Injector
Producer.getInjectionPoints()
.registerInjectionPoints
in interface Injector<T>
public void inject(T instance, javax.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager, SlimAnnotatedType<T> type, javax.enterprise.inject.spi.InjectionTarget<T> injectionTarget)
public List<Set<FieldInjectionPoint<?,?>>> getInjectableFields()
getInjectableFields
in interface Injector<T>
public List<Set<MethodInjectionPoint<?,?>>> getInitializerMethods()
getInitializerMethods
in interface Injector<T>
Copyright © 2016. All rights reserved.