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 Summary
Fields Modifier and Type Field Description protected booleanhasTransientReferenceParameter
-
Constructor Summary
Constructors Constructor Description JerseyConstructorInjectionPoint(org.jboss.weld.annotated.enhanced.EnhancedAnnotatedConstructor<T> constructor, jakarta.enterprise.inject.spi.Bean<T> bean, org.jboss.weld.manager.BeanManagerImpl manager, Collection<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers)Creates a new constructor injection point suitable for Jersey components.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.enterprise.inject.spi.Bean<?>getBean()Set<jakarta.enterprise.inject.spi.InjectionPoint>getInjectionPoints()MembergetMember()List<org.jboss.weld.injection.ParameterInjectionPoint<?,X>>getParameterInjectionPoints()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.<A extends Annotation>
AgetQualifier(Class<A> arg0)Set<Annotation>getQualifiers()TypegetType()booleanisDelegate()booleanisTransient()StringtoString()
-
-
-
Constructor Detail
-
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<org.glassfish.jersey.internal.inject.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 Detail
-
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:
getParameterValuesin classorg.jboss.weld.injection.ConstructorInjectionPoint<T>- Parameters:
manager- The Bean manager- Returns:
- The object array of looked up values
-
getType
public Type getType()
- Specified by:
getTypein interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiersin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getBean
public jakarta.enterprise.inject.spi.Bean<?> getBean()
- Specified by:
getBeanin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isDelegate
public boolean isDelegate()
- Specified by:
isDelegatein interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifier
public <A extends Annotation> A getQualifier(Class<A> arg0)
-
getMember
public Member getMember()
- Specified by:
getMemberin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getParameterInjectionPoints
public List<org.jboss.weld.injection.ParameterInjectionPoint<?,X>> getParameterInjectionPoints()
-
getInjectionPoints
public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
-
-