Class FacesApplicationArtifactHolder

java.lang.Object
org.apache.myfaces.cdi.FacesApplicationArtifactHolder

@ApplicationScoped public class FacesApplicationArtifactHolder extends Object
This bean is used to store the ServletContext, so CDI beans can get it later. This is used to ensure a valid FacesContext instance is passed when the bean is destroyed.
  • Constructor Details

    • FacesApplicationArtifactHolder

      public FacesApplicationArtifactHolder()
  • Method Details

    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
    • setServletContext

      public void setServletContext(jakarta.servlet.ServletContext servletContext)