@Configuration @ComponentScan(value={"com.github.adminfaces.template.bean","com.github.adminfaces.template.config","com.github.adminfaces.template.security"}) @ServletComponentScan(value={"com.github.adminfaces.template.security","com.github.adminfaces.template.session"}) @ConditionalOnClass(value=com.github.adminfaces.template.session.AdminSession.class) @AutoConfigureBefore(value=PrimefacesAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) public class AdminfacesAutoConfiguration extends Object
Constructor and Description |
---|
AdminfacesAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.config.BeanPostProcessor |
adminfacesPrimeFacesPropertiesPostProcessor() |
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> |
adminfacesWebServerFactoryCustomizer()
This
WebServerFactoryCustomizer adds a ServletContextInitializer to the embedded servlet-container
which is equivalent to adminfaces's own META-INF/web-fragment.xml . |
com.github.adminfaces.template.session.AdminSession |
adminSession() |
@Bean public org.springframework.beans.factory.config.BeanPostProcessor adminfacesPrimeFacesPropertiesPostProcessor()
@Bean @Scope(value="session", proxyMode=TARGET_CLASS) public com.github.adminfaces.template.session.AdminSession adminSession()
@Bean public org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory> adminfacesWebServerFactoryCustomizer()
WebServerFactoryCustomizer
adds a ServletContextInitializer
to the embedded servlet-container
which is equivalent to adminfaces's own META-INF/web-fragment.xml
.Copyright © 2016–2018 JoinFaces. All rights reserved.