Interface Injector<T>
-
- Type Parameters:
T-
- All Known Implementing Classes:
DefaultInjector,ResourceInjector
public interface Injector<T>Implementations of this interface are capable of performing field/method injection as defined inInjectionTarget.inject(Object, CreationalContext).- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract 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)voidregisterInjectionPoints(Set<InjectionPoint> injectionPoints)Add field/parameter injection points to the set of injection points of an InjectionTarget.
-
-
-
Method Detail
-
inject
void inject(T instance, CreationalContext<T> ctx, BeanManagerImpl manager, SlimAnnotatedType<T> type, InjectionTarget<T> injectionTarget)
-
registerInjectionPoints
void registerInjectionPoints(Set<InjectionPoint> injectionPoints)
Add field/parameter injection points to the set of injection points of an InjectionTarget. The resulting set is returned fromProducer.getInjectionPoints().- Parameters:
injectionPoints-
-
getInitializerMethods
List<Set<MethodInjectionPoint<?,?>>> getInitializerMethods()
-
getInjectableFields
List<Set<FieldInjectionPoint<?,?>>> getInjectableFields()
-
-