Class FacesServletAutoConfiguration
java.lang.Object
org.joinfaces.autoconfigure.faces.FacesServletAutoConfiguration
@AutoConfiguration(after=JakartaFaces3AutoConfiguration.class)
@ConditionalOnClass(jakarta.faces.webapp.FacesServlet.class)
@ConditionalOnWebApplication(type=SERVLET)
@EnableConfigurationProperties(FacesServletProperties.class)
public class FacesServletAutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.servlet.ServletRegistrationBean<FacesServlet>
facesServletRegistrationBean
(FacesServletProperties facesServletProperties, ObjectProvider<MultipartConfigElement> multipartConfig) This bean registers theFacesServlet
.
-
Constructor Details
-
FacesServletAutoConfiguration
public FacesServletAutoConfiguration()
-
-
Method Details
-
facesServletRegistrationBean
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<FacesServlet> facesServletRegistrationBean(FacesServletProperties facesServletProperties, ObjectProvider<MultipartConfigElement> multipartConfig) This bean registers theFacesServlet
.This
ServletRegistrationBean
also sets twoservlet-context attributes
to inform Mojarra and MyFaces about the dynamically added Servlet.- Parameters:
facesServletProperties
- The properties for theFacesServlet
-registration.multipartConfig
- TheMultipartConfigElement
for the FacesServlet, if available.- Returns:
- A custom
ServletRegistrationBean
which registers theFacesServlet
.
-