Modifier and Type | Field and Description |
---|---|
static String |
APPNG_GROUP |
static String |
APPNG_USER |
Constructor and Description |
---|
InitializerService() |
Modifier and Type | Method and Description |
---|---|
CoreService |
getCoreService() |
protected PropertySourcesPlaceholderConfigurer |
getPlaceholderConfigurer(Properties props) |
void |
initPlatform(Properties defaultOverrides,
Environment env,
DatabaseConnection rootConnection,
ServletContext ctx,
ExecutorService executor)
Initializes and loads the platform, which includes logging some environment settings.
|
Properties |
initPlatformConfig(Properties defaultOverrides,
String rootPath,
Boolean devMode)
Initialized and returns the platform configuration represented by a
Properties object. |
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,
ServletContext servletContext,
boolean sendReloadEvent,
FieldProcessor fp)
Loads the given
Site . |
void |
loadSite(SiteImpl siteToLoad,
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(ServletContext ctx)
Shuts down the whole platform by shutting down every active
Site . |
void |
shutDownSite(ServletContext servletContext,
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
public void initPlatform(Properties defaultOverrides, Environment env, DatabaseConnection rootConnection, 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 Properties initPlatformConfig(Properties defaultOverrides, String rootPath, Boolean devMode)
Properties
object.rootPath
- the root path of the platform (see Platform.Property.PLATFORM_ROOT_PATH
)devMode
- value for the Platform.Property.DEV_MODE
property to setpublic void loadSite(Environment env, SiteImpl siteToLoad, FieldProcessor fp) throws InvalidConfigurationException
Site
.env
- the current Environment
siteToLoad
- the Site
to loadInvalidConfigurationException
- if an configuration error occurredpublic 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, 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, ServletContext servletContext, boolean sendReloadEvent, FieldProcessor fp) throws InvalidConfigurationException
Site
.siteToLoad
- the Site
to loadservletContext
- the current ServletContext
InvalidConfigurationException
- if an configuration error occurredprotected boolean startApplication(Environment env, SiteImpl site, ApplicationProvider application)
protected PropertySourcesPlaceholderConfigurer getPlaceholderConfigurer(Properties props)
public void shutdownPlatform(ServletContext ctx)
Site
.ctx
- the current ServletContext
shutDownSite(ServletContext, Site)
public void shutDownSite(ServletContext servletContext, Site site)
Site
.servletContext
- the current ServletContext
.site
- the Site
to shut downpublic CoreService getCoreService()
public void setCoreService(CoreService coreService)
Copyright © 2011–2017 aiticon GmbH. All rights reserved.