Class ContextParamProducer

java.lang.Object
org.omnifaces.cdi.contextparam.ContextParamProducer

@Dependent public class ContextParamProducer extends Object

Producer for injecting a web.xml context parameter as defined by the ContextParam annotation.

Since:
2.2
Author:
Bauke Scholtz
  • Constructor Details

    • ContextParamProducer

      public ContextParamProducer()
  • Method Details

    • produce

      @Produces public String produce(InjectionPoint injectionPoint)
      Returns context parameter value associated with context parameter name derived from given injection point.
      Parameters:
      injectionPoint - Injection point to derive context parameter name from.
      Returns:
      Context parameter value associated with context parameter name derived from given injection point.