| 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 |
|---|---|
CoreService |
getCoreService() |
protected org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
getPlaceholderConfigurer(Properties props) |
Runnable |
getSiteLoader(SiteImpl siteToLoad,
Environment env,
boolean sendReloadEvent,
FieldProcessor fp,
boolean setThreadName)
|
void |
initPlatform(PlatformProperties platformConfig,
Environment env,
DatabaseConnection rootConnection,
javax.servlet.ServletContext ctx,
ExecutorService executor)
Deprecated.
|
void |
initPlatform(PlatformProperties platformConfig,
Environment env,
DatabaseConnection rootConnection,
javax.servlet.ServletContext ctx,
ExecutorService messagingExecutor,
ExecutorService startupExecutor)
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)
Deprecated.
|
void |
loadPlatform(PlatformProperties platformConfig,
Environment env,
String siteName,
String target,
ExecutorService messagingExecutor,
ExecutorService startupExecutor)
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,
FieldProcessor fp)
Loads the given
Site. |
void |
loadSite(SiteImpl siteToLoad,
Environment env,
boolean sendReloadEvent,
FieldProcessor fp,
boolean setThreadName) |
void |
loadSite(SiteImpl siteToLoad,
javax.servlet.ServletContext servletContext,
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
@Transactional @Deprecated public void initPlatform(PlatformProperties platformConfig, Environment env, DatabaseConnection rootConnection, javax.servlet.ServletContext ctx, ExecutorService executor) throws InvalidConfigurationException
InvalidConfigurationException@Transactional public void initPlatform(PlatformProperties platformConfig, Environment env, DatabaseConnection rootConnection, javax.servlet.ServletContext ctx, ExecutorService messagingExecutor, ExecutorService startupExecutor) throws InvalidConfigurationException
platformConfig - the current PlatformPropertiesenv - the current EnvironmentrootConnection - the root DatabaseConnectionctx - the current ServletContextmessagingExecutor - an ExecutorService used for cluster communication threadsstartupExecutor - an ExecutorService used for starting sites in parallelInvalidConfigurationException - 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 - InvalidConfigurationException@Deprecated public void loadPlatform(PlatformProperties platformConfig, Environment env, String siteName, String target, ExecutorService messagingExecutor) throws InvalidConfigurationException
InvalidConfigurationExceptionpublic void loadPlatform(PlatformProperties platformConfig, Environment env, String siteName, String target, ExecutorService messagingExecutor, ExecutorService startupExecutor) 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 threadsstartupExecutor - an ExecutorService used for starting sites in parallelInvalidConfigurationException - 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 loadInvalidConfigurationException - 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 loadInvalidConfigurationException - if an configuration error occurredpublic void loadSite(SiteImpl siteToLoad, javax.servlet.ServletContext servletContext, FieldProcessor fp) throws InvalidConfigurationException
Site.siteToLoad - the Site to loadservletContext - the current ServletContextInvalidConfigurationException - if an configuration error occurredpublic void loadSite(SiteImpl siteToLoad, Environment env, boolean sendReloadEvent, FieldProcessor fp, boolean setThreadName) throws InvalidConfigurationException
InvalidConfigurationExceptionpublic Runnable getSiteLoader(SiteImpl siteToLoad, Environment env, boolean sendReloadEvent, FieldProcessor fp, boolean setThreadName)
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 tosetThreadName - Runnableprotected 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–2021 aiticon GmbH. All rights reserved.