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 Details

    • ResourceInjectionProcessor

      public ResourceInjectionProcessor()
  • Method Details

    • createStaticProducerFieldResourceInjection

      protected <T, X> ResourceInjection<T> createStaticProducerFieldResourceInjection(FieldInjectionPoint<T,X> fieldInjectionPoint, BeanManagerImpl beanManager)
      Parameters:
      fieldInjectionPoint -
      beanManager -
      Returns:
      ResourceInjection for static producer field or null if 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

      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)