Package org.omnifaces.cdi.contextparam
Class ContextParamProducer
- java.lang.Object
-
- org.omnifaces.cdi.contextparam.ContextParamProducer
-
@Dependent public class ContextParamProducer extends Object
Producer for injecting a
web.xmlcontext parameter as defined by theContextParamannotation.- Since:
- 2.2
- Author:
- Bauke Scholtz
-
-
Constructor Summary
Constructors Constructor Description ContextParamProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringproduce(InjectionPoint injectionPoint)Returns context parameter value associated with context parameter name derived from given injection point.
-
-
-
Method Detail
-
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.
-
-