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.CubaServletConfigPERSISTENCE_CONFIGAPP_COMPONENTS_PARAM, APP_HOME_PROP, APP_PROPS_CONFIG_PARAM, APP_PROPS_PARAM, SEPARATOR_PATTERNSPRING_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, runEnvironmentSanityChecksafterInitAppProperties, checkAppHome, cleanup, contextDestroyed, initAppComponents, initAppProperties, loadPropertiesFromConfigafterInitAppContext, initAppContext, initAppContext, replaceLocationsFromConfpublic void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized in interface javax.servlet.ServletContextListenercontextInitialized in class AppContextLoaderprotected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext(java.lang.String[] locations)
createApplicationContext in class AppContextLoaderprotected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext(java.lang.String[] locations,
javax.servlet.ServletContext servletContext)
createApplicationContext in class AppContextLoaderprotected java.lang.String getAppPropertiesConfig(javax.servlet.ServletContext sc)
getAppPropertiesConfig in class AbstractWebAppContextLoaderprotected boolean runningInSingleWar()
runningInSingleWar in class AbstractWebAppContextLoader