Class CdiComponentProvider.JaxRsParamProducer

  • Enclosing class:
    CdiComponentProvider

    @ApplicationScoped
    public static class CdiComponentProvider.JaxRsParamProducer
    extends Object
    CDI producer for CDI bean constructor String parameters, that should be injected by JAX-RS.
    • Constructor Detail

      • JaxRsParamProducer

        public JaxRsParamProducer()
    • Method Detail

      • getParameterValue

        @Produces
        public String getParameterValue​(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint,
                                        jakarta.enterprise.inject.spi.BeanManager beanManager)
        Provide a value for given injection point. If the injection point does not refer to a CDI bean constructor parameter, or the value could not be found, the method will return null.
        Parameters:
        injectionPoint - actual injection point.
        beanManager - current application bean manager.
        Returns:
        concrete JAX-RS parameter value for given injection point.