public class InjectionPointFactory
extends java.lang.Object
InjectionPoint instances for fields, parameters, methods and constructors. The
ProcessInjectionPoint event is fired for each created injection point unless the silentInstance() is used.| Modifier and Type | Method and Description |
|---|---|
<T> ConstructorInjectionPoint<T> |
createConstructorInjectionPoint(Bean<T> declaringBean,
java.lang.Class<?> declaringComponentClass,
EnhancedAnnotatedConstructor<T> constructor,
BeanManagerImpl manager) |
<T> ConstructorInjectionPoint<T> |
createConstructorInjectionPoint(Bean<T> declaringBean,
EnhancedAnnotatedType<T> type,
BeanManagerImpl manager) |
<T,X> FieldInjectionPoint<T,X> |
createFieldInjectionPoint(EnhancedAnnotatedField<T,X> field,
Bean<?> declaringBean,
java.lang.Class<?> declaringComponentClass,
BeanManagerImpl manager)
Creates a new
FieldInjectionPoint and fires the ProcessInjectionPoint event. |
<T,X> MethodInjectionPoint<T,X> |
createMethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod,
Bean<?> declaringBean,
java.lang.Class<?> declaringComponentClass,
boolean observerOrDisposer,
BeanManagerImpl manager) |
<T,X> ParameterInjectionPoint<T,X> |
createParameterInjectionPoint(EnhancedAnnotatedParameter<T,X> parameter,
Bean<?> declaringBean,
java.lang.Class<?> declaringComponentClass,
BeanManagerImpl manager)
Creates a new
ParameterInjectionPoint and fires the ProcessInjectionPoint event. |
java.util.List<java.util.Set<FieldInjectionPoint<?,?>>> |
getFieldInjectionPoints(Bean<?> declaringBean,
EnhancedAnnotatedType<?> type,
BeanManagerImpl manager) |
<X> java.util.List<ParameterInjectionPoint<?,X>> |
getParameterInjectionPoints(EnhancedAnnotatedCallable<?,X,?> callable,
Bean<?> declaringBean,
java.lang.Class<?> declaringComponentClass,
BeanManagerImpl manager,
boolean observerOrDisposer) |
static InjectionPointFactory |
instance()
Returns the default
InjectionPointFactory singleton. |
protected <T,X> FieldInjectionPointAttributes<T,X> |
processInjectionPoint(FieldInjectionPointAttributes<T,X> injectionPointAttributes,
java.lang.Class<?> declaringComponentClass,
BeanManagerImpl manager)
Notifies CDI extension of a given
InjectionPoint. |
protected <T,X> ParameterInjectionPointAttributes<T,X> |
processInjectionPoint(ParameterInjectionPointAttributes<T,X> injectionPointAttributes,
java.lang.Class<?> declaringComponentClass,
BeanManagerImpl manager)
Notifies CDI extension of a given
InjectionPoint. |
static InjectionPointFactory |
silentInstance()
Returns an
InjectionPointFactory instance that never produces a ProcessInjectionPoint event. |
public static InjectionPointFactory instance()
InjectionPointFactory singleton.InjectionPointFactory singletonpublic static InjectionPointFactory silentInstance()
InjectionPointFactory instance that never produces a ProcessInjectionPoint event. This is used
for creating observer method injection points of extensions and proxy classes.InjectionPointFactory instanceprotected <T,X> FieldInjectionPointAttributes<T,X> processInjectionPoint(FieldInjectionPointAttributes<T,X> injectionPointAttributes, java.lang.Class<?> declaringComponentClass, BeanManagerImpl manager)
InjectionPoint.protected <T,X> ParameterInjectionPointAttributes<T,X> processInjectionPoint(ParameterInjectionPointAttributes<T,X> injectionPointAttributes, java.lang.Class<?> declaringComponentClass, BeanManagerImpl manager)
InjectionPoint.public <T,X> FieldInjectionPoint<T,X> createFieldInjectionPoint(EnhancedAnnotatedField<T,X> field, Bean<?> declaringBean, java.lang.Class<?> declaringComponentClass, BeanManagerImpl manager)
FieldInjectionPoint and fires the ProcessInjectionPoint event.field - declaringBean - declaringComponentClass - used for resolution of type variables of the injection point typemanager - public <T,X> ParameterInjectionPoint<T,X> createParameterInjectionPoint(EnhancedAnnotatedParameter<T,X> parameter, Bean<?> declaringBean, java.lang.Class<?> declaringComponentClass, BeanManagerImpl manager)
ParameterInjectionPoint and fires the ProcessInjectionPoint event.parameter - declaringBean - declaringComponentClass - used for resolution of type variables of the injection point typemanager - public <T> ConstructorInjectionPoint<T> createConstructorInjectionPoint(Bean<T> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
public <T> ConstructorInjectionPoint<T> createConstructorInjectionPoint(Bean<T> declaringBean, java.lang.Class<?> declaringComponentClass, EnhancedAnnotatedConstructor<T> constructor, BeanManagerImpl manager)
public <T,X> MethodInjectionPoint<T,X> createMethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod, Bean<?> declaringBean, java.lang.Class<?> declaringComponentClass, boolean observerOrDisposer, BeanManagerImpl manager)
public java.util.List<java.util.Set<FieldInjectionPoint<?,?>>> getFieldInjectionPoints(Bean<?> declaringBean, EnhancedAnnotatedType<?> type, BeanManagerImpl manager)
public <X> java.util.List<ParameterInjectionPoint<?,X>> getParameterInjectionPoints(EnhancedAnnotatedCallable<?,X,?> callable, Bean<?> declaringBean, java.lang.Class<?> declaringComponentClass, BeanManagerImpl manager, boolean observerOrDisposer)
Copyright © 2014. All Rights Reserved.