Class DefaultInjector<T>
- java.lang.Object
-
- org.jboss.weld.injection.producer.DefaultInjector<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Injector<T>
- Direct Known Subclasses:
ResourceInjector
public class DefaultInjector<T> extends Object implements Injector<T>
Injector implementation that injectsInject-annotated fields and calls CDI initializer methods.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description DefaultInjector(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Set<MethodInjectionPoint<?,?>>>getInitializerMethods()List<Set<FieldInjectionPoint<?,?>>>getInjectableFields()voidinject(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)voidregisterInjectionPoints(Set<InjectionPoint> injectionPoints)Add field/parameter injection points to the set of injection points of an InjectionTarget.
-
-
-
Constructor Detail
-
DefaultInjector
public DefaultInjector(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
-
-
Method Detail
-
of
public static <T> DefaultInjector<T> of(EnhancedAnnotatedType<T> type, Bean<T> bean, BeanManagerImpl beanManager)
-
registerInjectionPoints
public void registerInjectionPoints(Set<InjectionPoint> injectionPoints)
Description copied from interface:InjectorAdd field/parameter injection points to the set of injection points of an InjectionTarget. The resulting set is returned fromProducer.getInjectionPoints().- Specified by:
registerInjectionPointsin interfaceInjector<T>
-
inject
public void inject(T instance, CreationalContext<T> ctx, BeanManagerImpl manager, SlimAnnotatedType<T> type, InjectionTarget<T> injectionTarget)
-
getInjectableFields
public List<Set<FieldInjectionPoint<?,?>>> getInjectableFields()
- Specified by:
getInjectableFieldsin interfaceInjector<T>
-
getInitializerMethods
public List<Set<MethodInjectionPoint<?,?>>> getInitializerMethods()
- Specified by:
getInitializerMethodsin interfaceInjector<T>
-
-