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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected booleanprotected booleanprotected SiteContextManagerprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionSiteContextsBootstrap(boolean createContextsOnStartup, SiteContextManager siteContextManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCreateConcurrently(boolean createConcurrently) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
createContextsOnStartup
protected boolean createContextsOnStartup -
createConcurrently
protected boolean createConcurrently -
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setCreateConcurrently
public void setCreateConcurrently(boolean createConcurrently) -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-