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 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.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 S
getInjectionServices(BeanManagerImpl manager)
protected abstract Class<? extends Annotation>
getMarkerAnnotation(C processorContext)
Class<? extends Annotation>
getMarkerAnnotation(BeanManagerImpl manager)
protected abstract C
getProcessorContext(BeanManagerImpl manager)
protected Type
getResourceInjectionPointType(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)
-
-
-
Method Detail
-
createStaticProducerFieldResourceInjection
protected <T,X> ResourceInjection<T> createStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)
- Parameters:
fieldInjectionPoint
-beanManager
-- Returns:
ResourceInjection
for static producer field ornull
if 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(jakarta.enterprise.inject.spi.Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager)
- Parameters:
declaringBean
-type
-manager
-- Returns:
- the set of
ResourceInjection
s 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(jakarta.enterprise.inject.spi.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, 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)
-
-