| 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) |
void |
initPlatform(Properties defaultOverrides,
Environment env,
DatabaseConnection rootConnection,
javax.servlet.ServletContext ctx,
ExecutorService executor)
Initializes and loads the platform, which includes logging some environment settings.
|
void |
loadPlatform(Properties defaultOverrides,
Environment env,
String siteName,
String target,
ExecutorService executor)
Loads the platform by loading every active
Site. |
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)
Loads the given
Site. |
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 executor)
Reloads the platform with all of it's
Sites. |
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)
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 public void initPlatform(Properties defaultOverrides, Environment env, DatabaseConnection rootConnection, javax.servlet.ServletContext ctx, ExecutorService executor) throws InvalidConfigurationException
env - the current EnvironmentrootConnection - the root DatabaseConnectionctx - the current ServletContextexecutor - an ExecutorService used by the cluster messagingInvalidConfigurationException - if an configuration error occurredloadPlatform(java.util.Properties, Environment, String, String, ExecutorService)public void reloadPlatform(Properties config, Environment env, String siteName, String target, ExecutorService executor) throws InvalidConfigurationException
Sites.env - the current EnvironmentsiteName - the (optional) name of the Site that caused the platform reloadtarget - an (optional) target to redirect to after platform reloadInvalidConfigurationException - if an configuration error occurredpublic void loadPlatform(Properties defaultOverrides, Environment env, String siteName, String target, ExecutorService executor) throws InvalidConfigurationException
Site.env - the current EnvironmentsiteName - the (optional) name of the Site that caused the platform reloadtarget - an (optional) target to redirect to after platform reloadInvalidConfigurationException - if an configuration error occurredpublic 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) throws InvalidConfigurationException
Site.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 toInvalidConfigurationException - if an configuration error occurredprotected 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)public void shutDownSite(Environment env, Site site)
Site.env - the current Environment.site - the Site to shut downpublic CoreService getCoreService()
public void setCoreService(CoreService coreService)
Copyright © 2011–2019 aiticon GmbH. All rights reserved.