Package org.jboss.weld.injection
Class ResourceInjectionProcessor<S extends org.jboss.weld.bootstrap.api.Service,C>
- java.lang.Object
-
- org.jboss.weld.injection.ResourceInjectionProcessor<S,C>
-
- Type Parameters:
S-C- processor context
public abstract class ResourceInjectionProcessor<S extends org.jboss.weld.bootstrap.api.Service,C> extends Object
Abstract stateless resource injection processor.- Author:
- Martin Kouba
-
-
Constructor Summary
Constructors Constructor Description ResourceInjectionProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanaccept(AnnotatedMember<?> member, C processorContext)Allows an implementation to indicate whether it accepts a given injection point annotated with the marker annotation.protected <T> Set<ResourceInjection<?>>createResourceInjections(Iterable<EnhancedAnnotatedField<?,? super T>> fields, Iterable<EnhancedAnnotatedMethod<?,? super T>> methods, Bean<?> declaringBean, Class<?> declaringClass, BeanManagerImpl manager)protected <T> Set<ResourceInjection<?>>createResourceInjections(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager)protected <T,X>
ResourceInjection<T>createStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)protected abstract SgetInjectionServices(BeanManagerImpl manager)protected abstract Class<? extends Annotation>getMarkerAnnotation(C processorContext)Class<? extends Annotation>getMarkerAnnotation(BeanManagerImpl manager)protected abstract CgetProcessorContext(BeanManagerImpl manager)protected TypegetResourceInjectionPointType(AnnotatedMember<?> member)protected abstract <T> org.jboss.weld.injection.spi.ResourceReferenceFactory<T>getResourceReferenceFactory(InjectionPoint injectionPoint, S injectionServices, C processorContext)
-
-
-
Method Detail
-
createStaticProducerFieldResourceInjection
protected <T,X> ResourceInjection<T> createStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)
- Parameters:
fieldInjectionPoint-beanManager-- Returns:
ResourceInjectionfor static producer field ornullif required services are not supported or the field is not annotated with the specific marker annotation- See Also:
StaticEEResourceProducerField
-
createResourceInjections
protected <T> Set<ResourceInjection<?>> createResourceInjections(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
- Parameters:
declaringBean-type-manager-- Returns:
- the set of
ResourceInjections for the specified bean and type
-
getMarkerAnnotation
public Class<? extends Annotation> getMarkerAnnotation(BeanManagerImpl manager)
-
getResourceReferenceFactory
protected abstract <T> org.jboss.weld.injection.spi.ResourceReferenceFactory<T> getResourceReferenceFactory(InjectionPoint injectionPoint, S injectionServices, C processorContext)
-
getMarkerAnnotation
protected abstract Class<? extends Annotation> getMarkerAnnotation(C processorContext)
-
getProcessorContext
protected abstract C getProcessorContext(BeanManagerImpl manager)
-
getInjectionServices
protected abstract S getInjectionServices(BeanManagerImpl manager)
-
createResourceInjections
protected <T> Set<ResourceInjection<?>> createResourceInjections(Iterable<EnhancedAnnotatedField<?,? super T>> fields, Iterable<EnhancedAnnotatedMethod<?,? super T>> methods, Bean<?> declaringBean, Class<?> declaringClass, BeanManagerImpl manager)
-
accept
protected boolean accept(AnnotatedMember<?> member, C processorContext)
Allows an implementation to indicate whether it accepts a given injection point annotated with the marker annotation.
-
getResourceInjectionPointType
protected Type getResourceInjectionPointType(AnnotatedMember<?> member)
-
-