package org.jboss.seam.faces.environment;

import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Produces;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

/**
 * <p>
 * A producer which retrieves the {@link ExternalContext} for the current
 * request of the JavaServer Faces application by calling
 * {@link FacesContext#getExternalContext()} and stores the result as a
 * request-scoped bean instance.
 * </p>
 * 
 * <p>
 * This producer allows the {@link ExternalContext} to be injected:
 * </p>
 * 
 * <pre>
 * &#064;Inject
 * ExternalContext ctx;
 * </pre>
 * 
 * @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
 * @author Dan Allen
 */
public class ExternalContextProducer
{
   @Produces
   @RequestScoped
   public ExternalContext getExternalContext(final FacesContext context)
   {
      return context.getExternalContext();
   }
}

@@ -214,16 +214,44 @@
 ontext;%0D
+%0Aimport javax.inject.Named;%0D
 %0A%0D%0A/**%0D%0A
@@ -817,16 +817,27 @@
 cer%0D%0A%7B%0D%0A
+   @Named%0D%0A
    @Prod

Add @Named to producer for ExternalContext