Class FacesServletAutoConfiguration

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.web.servlet.ServletRegistrationBean<javax.faces.webapp.FacesServlet> facesServletRegistrationBean​(FacesServletProperties facesServletProperties, org.springframework.beans.factory.ObjectProvider<javax.servlet.MultipartConfigElement> multipartConfig)
      This bean registers the FacesServlet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FacesServletAutoConfiguration

        public FacesServletAutoConfiguration()
    • Method Detail

      • facesServletRegistrationBean

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.faces.webapp.FacesServlet> facesServletRegistrationBean​(FacesServletProperties facesServletProperties,
                                                                                                                                          org.springframework.beans.factory.ObjectProvider<javax.servlet.MultipartConfigElement> multipartConfig)
        This bean registers the FacesServlet.

        This ServletRegistrationBean also sets two servlet-context attributes to inform Mojarra and MyFaces about the dynamically added Servlet.

        Parameters:
        facesServletProperties - The properties for the FacesServlet-registration.
        multipartConfig - The MultipartConfigElement for the FacesServlet, if available.
        Returns:
        A custom ServletRegistrationBean which registers the FacesServlet.