public class FacesContextProducer extends Object
A producer which retrieves the FacesContext for the current request of the JavaServer Faces application by calling
FacesContext.getCurrentInstance() and stores the result as a request-scoped bean instance.
This producer allows the FacesContext to be injected:
@Inject FacesContext ctx;
QUESTION is it correct to use a @RequestScoped producer? If it is @Dependent, then a developer could unknowingly bind it to a wider-scoped bean
| Constructor and Description |
|---|
FacesContextProducer() |
Copyright © 2009-2013 Seam Framework. All Rights Reserved.