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 thecreateContextsOnStartup
is true).- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
applicationContext
protected boolean
createConcurrently
protected boolean
createContextsOnStartup
protected SiteContextManager
siteContextManager
protected boolean
triggered
-
Constructor Summary
Constructors Constructor Description SiteContextsBootstrap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setCreateConcurrently(boolean createConcurrently)
void
setCreateContextsOnStartup(boolean createContextsOnStartup)
void
setSiteContextManager(SiteContextManager siteContextManager)
-
-
-
Field Detail
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
createContextsOnStartup
protected boolean createContextsOnStartup
-
createConcurrently
protected boolean createConcurrently
-
siteContextManager
protected SiteContextManager siteContextManager
-
triggered
protected boolean triggered
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceorg.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 interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
-