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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAllows an implementation to indicate whether it accepts a given injection point annotated with the marker annotation.protected <T> Set<ResourceInjection<?>>createResourceInjections(jakarta.enterprise.inject.spi.Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) protected <T> Set<ResourceInjection<?>>createResourceInjections(Iterable<EnhancedAnnotatedField<?, ? super T>> fields, Iterable<EnhancedAnnotatedMethod<?, ? super T>> methods, jakarta.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringClass, 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(jakarta.enterprise.inject.spi.AnnotatedMember<?> member) protected abstract <T> org.jboss.weld.injection.spi.ResourceReferenceFactory<T>getResourceReferenceFactory(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint, S injectionServices, C processorContext)
-
Constructor Details
-
ResourceInjectionProcessor
public ResourceInjectionProcessor()
-
-
Method Details
-
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:
-
createResourceInjections
protected <T> Set<ResourceInjection<?>> createResourceInjections(jakarta.enterprise.inject.spi.Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) - Parameters:
declaringBean-type-manager-- Returns:
- the set of
ResourceInjections for the specified bean and type
-
getMarkerAnnotation
-
getResourceReferenceFactory
-
getMarkerAnnotation
-
getProcessorContext
-
getInjectionServices
-
createResourceInjections
protected <T> Set<ResourceInjection<?>> createResourceInjections(Iterable<EnhancedAnnotatedField<?, ? super T>> fields, Iterable<EnhancedAnnotatedMethod<?, ? super T>> methods, jakarta.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringClass, BeanManagerImpl manager) -
accept
protected boolean accept(jakarta.enterprise.inject.spi.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(jakarta.enterprise.inject.spi.AnnotatedMember<?> member)
-