org.apache.cocoon.spring.configurator.impl
Class ChildXmlWebApplicationContext

java.lang.Object
  extended byorg.springframework.core.io.DefaultResourceLoader
      extended byorg.springframework.context.support.AbstractApplicationContext
          extended byorg.springframework.context.support.AbstractRefreshableApplicationContext
              extended byorg.springframework.web.context.support.AbstractRefreshableWebApplicationContext
                  extended byorg.springframework.web.context.support.XmlWebApplicationContext
                      extended byorg.apache.cocoon.spring.configurator.impl.ChildXmlWebApplicationContext
All Implemented Interfaces:
ApplicationContext, ApplicationEventPublisher, BeanFactory, ConfigurableApplicationContext, ConfigurableWebApplicationContext, DisposableBean, HierarchicalBeanFactory, Lifecycle, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver, ThemeSource, WebApplicationContext

public class ChildXmlWebApplicationContext
extends XmlWebApplicationContext

Own implementation of a XmlWebApplicationContext which is configured with a base url specifying the root directory for this web application context.

Since:
1.0
Version:
$Id: ChildXmlWebApplicationContext.java 587750 2007-10-24 02:35:22Z vgritsenko $

Field Summary
protected  String baseUrl
          The base url (already postfixed with a '/').
protected  String beanDefinition
          The bean definition for this context.
 
Fields inherited from class org.springframework.web.context.support.XmlWebApplicationContext
DEFAULT_CONFIG_LOCATION, DEFAULT_CONFIG_LOCATION_PREFIX, DEFAULT_CONFIG_LOCATION_SUFFIX
 
Fields inherited from class org.springframework.context.support.AbstractApplicationContext
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
 
Fields inherited from interface org.springframework.web.context.ConfigurableWebApplicationContext
CONFIG_LOCATION_DELIMITERS
 
Fields inherited from interface org.springframework.web.context.WebApplicationContext
ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext
LOAD_TIME_WEAVER_BEAN_NAME
 
Constructor Summary
ChildXmlWebApplicationContext()
           
ChildXmlWebApplicationContext(String url, String rootDefinition)
           
 
Method Summary
 String getBaseUrl()
           
 String getBeanDefinition()
           
protected  String[] getDefaultConfigLocations()
          A child application context has no default configuration.
protected  Resource getResourceByPath(String path)
           
protected  void loadBeanDefinitions(XmlBeanDefinitionReader reader)
           
 void setBaseUrl(String url)
           
 void setBeanDefinition(String beanDefinition)
           
 
Methods inherited from class org.springframework.web.context.support.XmlWebApplicationContext
initBeanDefinitionReader, loadBeanDefinitions
 
Methods inherited from class org.springframework.web.context.support.AbstractRefreshableWebApplicationContext
getConfigLocations, getNamespace, getResourcePatternResolver, getServletConfig, getServletContext, getTheme, onRefresh, postProcessBeanFactory, resolvePath, setConfigLocations, setNamespace, setServletConfig, setServletContext
 
Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext
closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory
 
Methods inherited from class org.springframework.context.support.AbstractApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addListener, cancelRefresh, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getDisplayName, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleDependentBeans, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setParent, start, stop, toString
 
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
getClassLoader, getResource, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.context.ApplicationContext
getAutowireCapableBeanFactory, getDisplayName, getParent, getStartupDate
 
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
 
Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage
 
Methods inherited from interface org.springframework.context.ApplicationEventPublisher
publishEvent
 
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
 
Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader, getResource
 
Methods inherited from interface org.springframework.context.ConfigurableApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, close, getBeanFactory, isActive, refresh, registerShutdownHook, setParent
 
Methods inherited from interface org.springframework.context.Lifecycle
isRunning, start, stop
 

Field Detail

baseUrl

protected String baseUrl
The base url (already postfixed with a '/').


beanDefinition

protected String beanDefinition
The bean definition for this context.

Constructor Detail

ChildXmlWebApplicationContext

public ChildXmlWebApplicationContext()

ChildXmlWebApplicationContext

public ChildXmlWebApplicationContext(String url,
                                     String rootDefinition)
Method Detail

getBaseUrl

public String getBaseUrl()

setBaseUrl

public void setBaseUrl(String url)

getBeanDefinition

public String getBeanDefinition()

setBeanDefinition

public void setBeanDefinition(String beanDefinition)

loadBeanDefinitions

protected void loadBeanDefinitions(XmlBeanDefinitionReader reader)
                            throws BeansException,
                                   IOException
Throws:
BeansException
IOException
See Also:
XmlWebApplicationContext.loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)

getResourceByPath

protected Resource getResourceByPath(String path)
See Also:
AbstractRefreshableWebApplicationContext.getResourceByPath(java.lang.String)

getDefaultConfigLocations

protected String[] getDefaultConfigLocations()
A child application context has no default configuration.

See Also:
XmlWebApplicationContext.getDefaultConfigLocations()


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.