public class ServletContextManager extends Object implements org.springframework.web.context.ServletContextAware
| Modifier | Constructor and Description |
|---|---|
protected |
ServletContextManager()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
WebAppContext |
getApplicationContext(ApplicationBean appBean)
Get an ApplicationContext for a given context
|
WebAppContext |
getApplicationContext(String id)
Get an ApplicationContext for a given application id
|
static ServletContextManager |
getInstance()
return the singleton instance
|
void |
removeContextFromCache(String context) |
void |
setCacheService(CacheService cacheService) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
start()
Services initializations
|
public void setCacheService(CacheService cacheService)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic static ServletContextManager getInstance()
public void start()
throws JahiaInitializationException
JahiaInitializationException - on errorpublic WebAppContext getApplicationContext(String id) throws JahiaException
id - , the application idJahiaException - on errorpublic WebAppContext getApplicationContext(ApplicationBean appBean) throws JahiaException
appBean - the application bean against which we want the wepapp contextJahiaException - on errorpublic void removeContextFromCache(String context)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.