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<jakarta.faces.webapp.FacesServlet>
facesServletRegistrationBean
(FacesServletProperties facesServletProperties) This bean registers theFacesServlet
.
-
Constructor Details
-
FacesServletAutoConfiguration
public FacesServletAutoConfiguration()
-
-
Method Details
-
facesServletRegistrationBean
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<jakarta.faces.webapp.FacesServlet> facesServletRegistrationBean(FacesServletProperties facesServletProperties) 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.- Returns:
- A custom
ServletRegistrationBean
which registers theFacesServlet
.
-