Class FacesServletAutoConfiguration
- java.lang.Object
-
- org.joinfaces.autoconfigure.javaxfaces.FacesServletAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnClass(javax.faces.webapp.FacesServlet.class) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(FacesServletProperties.class) @AutoConfigureAfter(JavaxFacesAutoConfiguration.class) public class FacesServletAutoConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description FacesServletAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServletRegistrationBean<FacesServlet>
facesServletRegistrationBean(FacesServletProperties facesServletProperties)
This bean registers theFacesServlet
.
-
-
-
Method Detail
-
facesServletRegistrationBean
@Bean public ServletRegistrationBean<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
.
-
-