org.jboss.seam.faces.environment
Class ExternalContextProducer
java.lang.Object
org.jboss.seam.faces.environment.ExternalContextProducer
public class ExternalContextProducer
- extends Object
A producer which retrieves the ExternalContext for the current request of the JavaServer Faces application by calling
FacesContext.getExternalContext() and stores the result as a request-scoped bean instance.
This producer allows the ExternalContext to be injected:
@Inject
ExternalContext ctx;
- Author:
- Lincoln Baxter, III, Dan Allen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalContextProducer
public ExternalContextProducer()
getExternalContext
@Named
@Produces
@RequestScoped
public ExternalContext getExternalContext(FacesContext context)
Copyright © 2009-2011 Seam Framework. All Rights Reserved.