Class SiteContextsBootstrap

java.lang.Object
org.craftercms.engine.service.context.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 Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • createContextsOnStartup

      protected boolean createContextsOnStartup
    • createConcurrently

      protected boolean createConcurrently
    • siteContextManager

      protected SiteContextManager siteContextManager
    • triggered

      protected boolean triggered
  • Constructor Details

    • SiteContextsBootstrap

      public SiteContextsBootstrap(boolean createContextsOnStartup, SiteContextManager siteContextManager)
  • Method Details

    • setApplicationContext

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

      public void setCreateConcurrently(boolean createConcurrently)
    • onApplicationEvent

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