| Modifier and Type | Field and Description |
|---|---|
static String |
APPNG_GROUP |
static String |
APPNG_USER |
protected PlatformEventListener |
auditableListener |
| Constructor and Description |
|---|
InitializerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
CoreService |
getCoreService() |
protected org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
getPlaceholderConfigurer(Properties props) |
Runnable |
getSiteLoader(SiteImpl siteToLoad,
Environment env,
boolean sendReloadEvent,
FieldProcessor fp)
|
void |
initPlatform(PlatformProperties platformConfig,
Environment env,
DatabaseConnection rootConnection,
javax.servlet.ServletContext ctx,
ExecutorService messagingExecutor)
Initializes and loads the platform, which includes logging some environment settings.
|
Properties |
loadNodeProperties(Environment env) |
void |
loadPlatform(PlatformProperties platformConfig,
Environment env,
String siteName,
String target,
ExecutorService messagingExecutor)
Loads the platform by loading every active
Site. |
PlatformProperties |
loadPlatformProperties(Properties defaultOverrides,
Environment env) |
void |
loadSite(Environment env,
SiteImpl siteToLoad,
boolean sendReloadEvent,
FieldProcessor fp)
Loads the given
Site. |
void |
loadSite(Environment env,
SiteImpl siteToLoad,
boolean sendReloadEvent,
FieldProcessor fp,
boolean async)
Loads the given
Site. |
void |
loadSite(Environment env,
SiteImpl siteToLoad,
FieldProcessor fp)
Loads the given
Site. |
void |
reloadPlatform(Properties config,
Environment env,
String siteName,
String target,
ExecutorService messagingExecutor)
Deprecated.
will be removed with no replacement
|
void |
setCoreService(CoreService coreService) |
void |
shutdownPlatform(javax.servlet.ServletContext ctx)
Shuts down the whole platform by shutting down every active
Site. |
void |
shutDownSite(Environment env,
Site site,
boolean removeFromSiteMap)
Shuts down the given
Site. |
protected boolean |
startApplication(Environment env,
SiteImpl site,
ApplicationProvider application) |
public static final String APPNG_USER
public static final String APPNG_GROUP
@Autowired protected PlatformEventListener auditableListener
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException@Transactional public void initPlatform(PlatformProperties platformConfig, Environment env, DatabaseConnection rootConnection, javax.servlet.ServletContext ctx, ExecutorService messagingExecutor) throws InvalidConfigurationException
platformConfig - the current PlatformPropertiesenv - the current EnvironmentrootConnection - the root DatabaseConnectionctx - the current ServletContextmessagingExecutor - an ExecutorService used for cluster communication threadsInvalidConfigurationException - if an configuration error occurredloadPlatform(PlatformProperties, Environment, String, String,
ExecutorService)@Deprecated public void reloadPlatform(Properties config, Environment env, String siteName, String target, ExecutorService messagingExecutor) throws InvalidConfigurationException
config - env - siteName - target - messagingExecutor - InvalidConfigurationExceptionpublic void loadPlatform(PlatformProperties platformConfig, Environment env, String siteName, String target, ExecutorService messagingExecutor) throws InvalidConfigurationException
Site.platformConfig - the current PlatformPropertiesenv - the current EnvironmentsiteName - the (optional) name of the Site that caused the platform reloadtarget - an (optional) target to redirect to after platform reloadmessagingExecutor - an ExecutorService used for cluster communication threadsInvalidConfigurationException - if an configuration error occurredpublic PlatformProperties loadPlatformProperties(Properties defaultOverrides, Environment env)
public Properties loadNodeProperties(Environment env)
@Transactional public void loadSite(Environment env, SiteImpl siteToLoad, FieldProcessor fp) throws InvalidConfigurationException
Site.env - the current EnvironmentsiteToLoad - the Site to loadfp - a FieldProcessor to add messages toInvalidConfigurationException - if an configuration error occurred@Transactional public void loadSite(Environment env, SiteImpl siteToLoad, boolean sendReloadEvent, FieldProcessor fp) throws InvalidConfigurationException
Site.env - the current EnvironmentsiteToLoad - the Site to loadsendReloadEvent - if a ReloadSiteEvent should be sent or notfp - a FieldProcessor to add messages toInvalidConfigurationException - if an configuration error occurred@Transactional public void loadSite(Environment env, SiteImpl siteToLoad, boolean sendReloadEvent, FieldProcessor fp, boolean async) throws InvalidConfigurationException
Site.env - the current EnvironmentsiteToLoad - the Site to loadsendReloadEvent - if a ReloadSiteEvent should be sent or notfp - a FieldProcessor to add messages toasync - if the reload should be performed asynchronously using an
ExecutorServiceInvalidConfigurationException - if an configuration error occurredpublic Runnable getSiteLoader(SiteImpl siteToLoad, Environment env, boolean sendReloadEvent, FieldProcessor fp)
siteToLoad - the Site to load, freshly loaded with CoreService.getSite(Integer) or
CoreService.getSiteByName(String)env - the current EnvironmentsendReloadEvent - whether or not a ReloadSiteEvent should be sentfp - a FieldProcessor to attach messages toRunnableprotected boolean startApplication(Environment env, SiteImpl site, ApplicationProvider application)
protected org.springframework.context.support.PropertySourcesPlaceholderConfigurer getPlaceholderConfigurer(Properties props)
public void shutdownPlatform(javax.servlet.ServletContext ctx)
Site.ctx - the current ServletContextshutDownSite(Environment, Site, boolean)public void shutDownSite(Environment env, Site site, boolean removeFromSiteMap)
Site.env - the current Environment.site - the Site to shut downpublic CoreService getCoreService()
public void setCoreService(CoreService coreService)
Copyright © 2011–2023 aiticon GmbH. All rights reserved.