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.


Fields inherited from class com.interface21.context.support.AbstractApplicationContext
logger, MESSAGE_SOURCE_BEAN_NAME, OPTIONS_BEAN_NAME
 
Fields inherited from interface com.interface21.web.context.WebApplicationContext
WEB_APPLICATION_CONTEXT_ATTRIBUTE_NAME
 
Constructor Summary
StaticWebApplicationContext()
           
StaticWebApplicationContext(ApplicationContext parent, java.lang.String namespace)
           
 
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.ui.context.support.StaticUiApplicationContext
getTheme, onRefresh
 
Methods inherited from class com.interface21.context.support.StaticApplicationContext
addMessage, getBeanFactory, loadBeanFactory, rebuild, refreshBeanFactory, registerPrototype, registerSingleton
 
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
 
Methods inherited from interface com.interface21.context.MessageSource
getMessage, getMessage, getMessage
 
Methods inherited from interface com.interface21.beans.factory.ListableBeanFactory
getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames
 
Methods inherited from interface com.interface21.beans.factory.BeanFactory
getAliases, getBean, getBean, isSingleton
 
Methods inherited from interface com.interface21.ui.context.ThemeSource
getTheme
 

Constructor Detail

StaticWebApplicationContext

public StaticWebApplicationContext()

StaticWebApplicationContext

public StaticWebApplicationContext(ApplicationContext parent,
                                   java.lang.String namespace)
                            throws BeansException,
                                   ApplicationContextException
Method Detail

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.