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
Site s. |
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 Environment
rootConnection
- the root DatabaseConnection
ctx
- the current ServletContext
executor
- 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
Site
s.env
- the current Environment
siteName
- 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 Environment
siteName
- 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 Environment
siteToLoad
- 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 Environment
siteToLoad
- 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 ServletContext
InvalidConfigurationException
- 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 Environment
sendReloadEvent
- 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 ServletContext
shutDownSite(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.