Class AdminfacesAutoConfiguration


  • @Configuration
    @EnableConfigurationProperties(AdminfacesProperties.class)
    @ComponentScan({"com.github.adminfaces.template.bean","com.github.adminfaces.template.config","com.github.adminfaces.template.security"})
    @ServletComponentScan({"com.github.adminfaces.template.security","com.github.adminfaces.template.session"})
    @ConditionalOnClass(com.github.adminfaces.template.session.AdminSession.class)
    @AutoConfigureBefore(PrimefacesAutoConfiguration.class)
    @ConditionalOnWebApplication(type=SERVLET)
    public class AdminfacesAutoConfiguration
    extends java.lang.Object
    Spring Boot Auto Configuration of AdminFaces.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdminfacesAutoConfiguration

        public AdminfacesAutoConfiguration()
    • Method Detail

      • adminfacesPrimeFacesPropertiesPostProcessor

        @Bean
        public org.springframework.beans.factory.config.BeanPostProcessor adminfacesPrimeFacesPropertiesPostProcessor()
      • adminSession

        @Bean
        @Scope(value="session",
               proxyMode=TARGET_CLASS)
        public com.github.adminfaces.template.session.AdminSession adminSession()
      • adminfacesWebServerFactoryCustomizer

        @Bean
        public 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.
        Returns:
        adminfaces web server factory customizer