public class SingleAppCoreContextLoader extends AppContextLoader
AppContext
loader of the middleware application block packed in a WAR together with the web block.Modifier and Type | Class and Description |
---|---|
protected static class |
SingleAppCoreContextLoader.SetClassLoaderFilter |
AbstractWebAppContextLoader.CubaServletConfig
PERSISTENCE_CONFIG
APP_COMPONENTS_PARAM, APP_HOME_PROP, APP_PROPS_CONFIG_PARAM, APP_PROPS_PARAM, SEPARATOR_PATTERN
SPRING_CONTEXT_CONFIG
Constructor and Description |
---|
SingleAppCoreContextLoader() |
Modifier and Type | Method and Description |
---|---|
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Here we create servlets and filters manually, to make sure the classes would be loaded using necessary classloader.
|
protected org.springframework.context.support.ClassPathXmlApplicationContext |
createApplicationContext(java.lang.String[] locations) |
protected org.springframework.context.support.ClassPathXmlApplicationContext |
createApplicationContext(java.lang.String[] locations,
javax.servlet.ServletContext servletContext) |
protected java.lang.String |
getAppPropertiesConfig(javax.servlet.ServletContext sc) |
protected boolean |
runningInSingleWar() |
beforeInitAppContext, createPersistenceXml, getBlock, runEnvironmentSanityChecks
afterInitAppProperties, checkAppHome, cleanup, contextDestroyed, initAppComponents, initAppProperties, loadPropertiesFromConfig
afterInitAppContext, initAppContext, initAppContext, replaceLocationsFromConf
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
contextInitialized
in class AppContextLoader
protected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext(java.lang.String[] locations)
createApplicationContext
in class AppContextLoader
protected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext(java.lang.String[] locations, javax.servlet.ServletContext servletContext)
createApplicationContext
in class AppContextLoader
protected java.lang.String getAppPropertiesConfig(javax.servlet.ServletContext sc)
getAppPropertiesConfig
in class AbstractWebAppContextLoader
protected boolean runningInSingleWar()
runningInSingleWar
in class AbstractWebAppContextLoader