Package org.jboss.weld.injection
Class InjectionPointFactory
- java.lang.Object
-
- org.jboss.weld.injection.InjectionPointFactory
-
public class InjectionPointFactory extends Object
Factory class that producerInjectionPointinstances for fields, parameters, methods and constructors. TheProcessInjectionPointevent is fired for each created injection point unless thesilentInstance()is used.- Author:
- Jozef Hartinger
-
-
Method Summary
-
-
-
Method Detail
-
instance
public static InjectionPointFactory instance()
Returns the defaultInjectionPointFactorysingleton.- Returns:
- the default
InjectionPointFactorysingleton
-
silentInstance
public static InjectionPointFactory silentInstance()
Returns anInjectionPointFactoryinstance that never produces aProcessInjectionPointevent. This is used for creating observer method injection points of extensions and proxy classes.- Returns:
- an
InjectionPointFactoryinstance
-
processInjectionPoint
protected <T,X> FieldInjectionPointAttributes<T,X> processInjectionPoint(FieldInjectionPointAttributes<T,X> injectionPointAttributes, Class<?> declaringComponentClass, BeanManagerImpl manager)
Notifies CDI extension of a givenInjectionPoint.
-
processInjectionPoint
protected <T,X> ParameterInjectionPointAttributes<T,X> processInjectionPoint(ParameterInjectionPointAttributes<T,X> injectionPointAttributes, Class<?> declaringComponentClass, BeanManagerImpl manager)
Notifies CDI extension of a givenInjectionPoint.
-
createFieldInjectionPoint
public <T,X> FieldInjectionPoint<T,X> createFieldInjectionPoint(EnhancedAnnotatedField<T,X> field, Bean<?> declaringBean, Class<?> declaringComponentClass, BeanManagerImpl manager)
Creates a newFieldInjectionPointand fires theProcessInjectionPointevent.- Parameters:
field-declaringBean-declaringComponentClass- used for resolution of type variables of the injection point typemanager-- Returns:
-
createParameterInjectionPoint
public <T,X> ParameterInjectionPoint<T,X> createParameterInjectionPoint(EnhancedAnnotatedParameter<T,X> parameter, Bean<?> declaringBean, Class<?> declaringComponentClass, BeanManagerImpl manager)
Creates a newParameterInjectionPointand fires theProcessInjectionPointevent.- Parameters:
parameter-declaringBean-declaringComponentClass- used for resolution of type variables of the injection point typemanager-- Returns:
-
createConstructorInjectionPoint
public <T> ConstructorInjectionPoint<T> createConstructorInjectionPoint(Bean<T> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
-
createConstructorInjectionPoint
public <T> ConstructorInjectionPoint<T> createConstructorInjectionPoint(Bean<T> declaringBean, Class<?> declaringComponentClass, EnhancedAnnotatedConstructor<T> constructor, BeanManagerImpl manager)
-
createMethodInjectionPoint
public <T,X> MethodInjectionPoint<T,X> createMethodInjectionPoint(MethodInjectionPoint.MethodInjectionPointType methodInjectionPointType, EnhancedAnnotatedMethod<T,X> enhancedMethod, Bean<?> declaringBean, Class<?> declaringComponentClass, Set<Class<? extends Annotation>> specialParameterMarkers, BeanManagerImpl manager)
-
getFieldInjectionPoints
public List<Set<FieldInjectionPoint<?,?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type, BeanManagerImpl manager)
-
getParameterInjectionPoints
public <X> List<ParameterInjectionPoint<?,X>> getParameterInjectionPoints(EnhancedAnnotatedCallable<?,X,?> callable, Bean<?> declaringBean, Class<?> declaringComponentClass, BeanManagerImpl manager, boolean observerOrDisposer)
-
-