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
 javax.faces.context.ExternalContext getExternalContext(javax.faces.context.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

@Produces
@RequestScoped
public javax.faces.context.ExternalContext getExternalContext(javax.faces.context.FacesContext context)


Copyright © 2011 Seam Framework. All Rights Reserved.