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
-
Constructor Summary
ConstructorDescriptionJerseyConstructorInjectionPoint
(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. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.enterprise.inject.spi.Bean<?>
getBean()
Set<jakarta.enterprise.inject.spi.InjectionPoint>
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) getType()
boolean
boolean
toString()
Methods inherited from class org.jboss.weld.injection.ConstructorInjectionPoint
equals, getAnnotated, getComponentConstructor, getSignature, hashCode, newInstance, newInstance
-
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 classorg.jboss.weld.injection.ConstructorInjectionPoint<T>
- Parameters:
manager
- The Bean manager- Returns:
- The object array of looked up values
-
getType
- Specified by:
getType
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifiers
- Specified by:
getQualifiers
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getBean
public jakarta.enterprise.inject.spi.Bean<?> getBean()- Specified by:
getBean
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isDelegate
public boolean isDelegate()- Specified by:
isDelegate
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isTransient
public boolean isTransient()- Specified by:
isTransient
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifier
-
getMember
- Specified by:
getMember
in interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getParameterInjectionPoints
-
getInjectionPoints
-
toString
-