Class JerseyConstructorInjectionPoint<T>

java.lang.Object
org.jboss.weld.injection.ConstructorInjectionPoint<T>
org.glassfish.jersey.inject.cdi.se.injector.JerseyConstructorInjectionPoint<T>
All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionPoint, org.jboss.weld.injection.attributes.WeldInjectionPointAttributes<T,Constructor<T>>

public class JerseyConstructorInjectionPoint<T> extends org.jboss.weld.injection.ConstructorInjectionPoint<T>
Class that creates a new instance using the provided constructor, selects and injects the values.
Author:
Petr Bouda
  • Field Details

    • hasTransientReferenceParameter

      protected final boolean hasTransientReferenceParameter
  • Constructor Details

    • JerseyConstructorInjectionPoint

      public JerseyConstructorInjectionPoint(org.jboss.weld.annotated.enhanced.EnhancedAnnotatedConstructor<T> constructor, jakarta.enterprise.inject.spi.Bean<T> bean, org.jboss.weld.manager.BeanManagerImpl manager, Collection<InjectionResolver> resolvers)
      Creates a new constructor injection point suitable for Jersey components.
      Parameters:
      constructor - resolved constructor that can be injected using Jersey.
      bean - bean descriptor dedicated to the parent class.
      manager - current bean manager.
      resolvers - all registered resolvers.
  • Method Details

    • getParameterValues

      public Object[] getParameterValues(org.jboss.weld.manager.BeanManagerImpl manager, jakarta.enterprise.context.spi.CreationalContext<?> ctx, jakarta.enterprise.context.spi.CreationalContext<?> ctxTransient)
      Helper method for getting the current parameter values from a list of annotated parameters.
      Overrides:
      getParameterValues in class org.jboss.weld.injection.ConstructorInjectionPoint<T>
      Parameters:
      manager - The Bean manager
      Returns:
      The object array of looked up values
    • getType

      public Type getType()
      Specified by:
      getType in interface jakarta.enterprise.inject.spi.InjectionPoint
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Specified by:
      getQualifiers in interface jakarta.enterprise.inject.spi.InjectionPoint
    • getBean

      public jakarta.enterprise.inject.spi.Bean<?> getBean()
      Specified by:
      getBean in interface jakarta.enterprise.inject.spi.InjectionPoint
    • isDelegate

      public boolean isDelegate()
      Specified by:
      isDelegate in interface jakarta.enterprise.inject.spi.InjectionPoint
    • isTransient

      public boolean isTransient()
      Specified by:
      isTransient in interface jakarta.enterprise.inject.spi.InjectionPoint
    • getQualifier

      public <A extends Annotation> A getQualifier(Class<A> arg0)
      Specified by:
      getQualifier in interface org.jboss.weld.injection.attributes.WeldInjectionPointAttributes<T extends Object,X extends Object>
    • getMember

      public Member getMember()
      Specified by:
      getMember in interface jakarta.enterprise.inject.spi.InjectionPoint
    • getParameterInjectionPoints

      public List<org.jboss.weld.injection.ParameterInjectionPoint<?,T>> getParameterInjectionPoints()
    • getInjectionPoints

      public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
    • toString

      public String toString()
      Overrides:
      toString in class Object