org.jboss.seam.faces.environment
Class ExternalContextProducer

java.lang.Object
  extended by 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

Constructor Summary
ExternalContextProducer()
           
 
Method Summary
 ExternalContext getExternalContext(FacesContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalContextProducer

public ExternalContextProducer()
Method Detail

getExternalContext

@Named
@Produces
@RequestScoped
public ExternalContext getExternalContext(FacesContext context)


Copyright © 2009-2011 Seam Framework. All Rights Reserved.