com.interface21.web.context.support
Class StaticWebApplicationContext
java.lang.Object
|
+--com.interface21.context.support.AbstractApplicationContext
|
+--com.interface21.context.support.StaticApplicationContext
|
+--com.interface21.ui.context.support.StaticUiApplicationContext
|
+--com.interface21.web.context.support.StaticWebApplicationContext
- All Implemented Interfaces:
- ApplicationContext, BeanFactory, ListableBeanFactory, MessageSource, ThemeSource, WebApplicationContext
- public class StaticWebApplicationContext
- extends StaticUiApplicationContext
- implements WebApplicationContext
WebApplicationContext implementation for testing.
Not for use in production applications.
|
Method Summary |
java.lang.String |
getNamespace()
|
javax.servlet.ServletContext |
getServletContext()
Return the standard Servlet API ServletContext for this application. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Normally this would cause loading, but this class doesn't rely on loading. |
| Methods inherited from class com.interface21.context.support.AbstractApplicationContext |
addListener, configureManagedObject, getAliases, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getDisplayName, getMessage, getMessage, getMessage, getOptions, getParent, getResourceAsStream, getResourceBasePath, getResourceByPath, getStartupDate, isSingleton, publishEvent, refresh, removeSharedObject, setDisplayName, setParent, sharedObject, shareObject, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.interface21.context.ApplicationContext |
getDisplayName, getOptions, getParent, getResourceAsStream, getResourceBasePath, getStartupDate, publishEvent, refresh, removeSharedObject, sharedObject, shareObject |
StaticWebApplicationContext
public StaticWebApplicationContext()
StaticWebApplicationContext
public StaticWebApplicationContext(ApplicationContext parent,
java.lang.String namespace)
throws BeansException,
ApplicationContextException
getNamespace
public java.lang.String getNamespace()
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Normally this would cause loading, but this class doesn't rely on loading.
- Specified by:
setServletContext in interface WebApplicationContext
- See Also:
WebApplicationContext.setServletContext(ServletContext)
getServletContext
public javax.servlet.ServletContext getServletContext()
- Description copied from interface:
WebApplicationContext
- Return the standard Servlet API ServletContext for this application.
- Specified by:
getServletContext in interface WebApplicationContext
Rod Johnson and Spring contributors 2001-2003.