Class FacesServletAutoConfiguration
- java.lang.Object
-
- org.joinfaces.autoconfigure.javaxfaces.FacesServletAutoConfiguration
-
@AutoConfiguration(after=JavaxFacesAutoConfiguration.class) @ConditionalOnClass(javax.faces.webapp.FacesServlet.class) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(FacesServletProperties.class) public class FacesServletAutoConfiguration extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description 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 theFacesServlet.
-
-
-
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 theFacesServlet.This
ServletRegistrationBeanalso sets twoservlet-context attributesto inform Mojarra and MyFaces about the dynamically added Servlet.- Parameters:
facesServletProperties- The properties for theFacesServlet-registration.multipartConfig- TheMultipartConfigElementfor the FacesServlet, if available.- Returns:
- A custom
ServletRegistrationBeanwhich registers theFacesServlet.
-
-