Class SiteContextsBootstrap

  • All Implemented Interfaces:
    EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    public class SiteContextsBootstrap
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
    Class that is used to create all contexts after Spring startup (if the createContextsOnStartup is true).
    Author:
    avasquez
    • Field Detail

      • applicationContext

        protected org.springframework.context.ApplicationContext applicationContext
      • createContextsOnStartup

        protected boolean createContextsOnStartup
      • createConcurrently

        protected boolean createConcurrently
      • triggered

        protected boolean triggered
    • Constructor Detail

      • SiteContextsBootstrap

        public SiteContextsBootstrap()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setCreateContextsOnStartup

        public void setCreateContextsOnStartup​(boolean createContextsOnStartup)
      • setCreateConcurrently

        public void setCreateConcurrently​(boolean createConcurrently)
      • setSiteContextManager

        public void setSiteContextManager​(SiteContextManager siteContextManager)
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>