public class TenantIgnoreXmlWebApplicationContext extends XmlWebApplicationContext implements TenantNameAwareContext
XmlWebApplicationContext implementation which ignores any declared "tenant" scope occurrence.| Constructor and Description |
|---|
TenantIgnoreXmlWebApplicationContext()
Constructs a migration
XmlWebApplicationContext instance. |
TenantIgnoreXmlWebApplicationContext(java.lang.String tenantId,
java.lang.String ctxPath) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName() |
java.lang.String |
getTenantName() |
protected void |
initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) |
public TenantIgnoreXmlWebApplicationContext(java.lang.String tenantId,
java.lang.String ctxPath)
public TenantIgnoreXmlWebApplicationContext()
XmlWebApplicationContext instance. Purpose of this XmlWebApplicationContext
is to filter out tenant scoped beans with minimal work effort. As soon as the spring configuration for web
application is adjusted this context can be reverted to default one.
Typical use case :
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextClass</param-name>
<param-value>de.hybris.platform.spring.ctx.TenantIgnoreXmlWebApplicationContext</param-value>
</init-param>
...
</servlet>
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader)
public java.lang.String getDisplayName()
public java.lang.String getTenantName()
getTenantName in interface TenantNameAwareContextCopyright © 2018 SAP SE. All Rights Reserved.