de.mindmatters.faces.spring.factory.support
Class AbstractFacesWebApplicationContext
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.AbstractRefreshableApplicationContext
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext
org.springframework.web.context.support.XmlWebApplicationContext
de.mindmatters.faces.spring.factory.support.AbstractFacesWebApplicationContext
- All Implemented Interfaces:
- ApplicationContext, ApplicationEventPublisher, BeanFactory, ConfigurableApplicationContext, ConfigurableWebApplicationContext, DisposableBean, HierarchicalBeanFactory, ListableBeanFactory, MessageSource, ResourceLoader, ResourcePatternResolver, ThemeSource, WebApplicationContext
- Direct Known Subclasses:
- DefaultConfigWebApplicationContext, DefaultFacesWebApplicationContext
- public abstract class AbstractFacesWebApplicationContext
- extends XmlWebApplicationContext
Enables plug'n'play features for registering
InstantiationProcessor
s for
BeanFactories.
Uses
DefaultConfigurableBeanFactory
or
subclasses as internal BeanFactory.
Based on
XmlWebApplicationContext
- Author:
- Andreas Kuhrwahl
- See Also:
InstantiationProcessor
,
ConfigurableBeanFactory
Methods inherited from class org.springframework.web.context.support.AbstractRefreshableWebApplicationContext |
getConfigLocations, getNamespace, getResourceByPath, getResourcePatternResolver, getServletContext, getTheme, onRefresh, refresh, setConfigLocations, setNamespace, setServletContext, toString |
Methods inherited from class org.springframework.context.support.AbstractApplicationContext |
addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, getAliases, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getDisplayName, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResources, getStartupDate, getType, isSingleton, publishEvent, setDisplayName, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractFacesWebApplicationContext
public AbstractFacesWebApplicationContext()
createBeanFactory
protected final DefaultListableBeanFactory createBeanFactory()
-
createConfigurableBeanFactory
protected abstract DefaultConfigurableBeanFactory createConfigurableBeanFactory()
- Create the bean factory for this context.
- Returns:
- the bean factory for this context
- See Also:
DefaultConfigurableBeanFactory
,
AbstractApplicationContext.getInternalParentBeanFactory()
getConfigurableBeanFactory
protected final ConfigurableBeanFactory getConfigurableBeanFactory()
- Returns the internal bean factory.
- Returns:
- this application context's internal bean factory
- Throws:
java.lang.IllegalStateException
- if the context does not hold an internal bean factory yet
(usually if refresh
has never been called)- See Also:
AbstractApplicationContext.getBeanFactory()
postProcessBeanFactory
protected final void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
- Registers the plugged instantiation processors.
- Parameters:
beanFactory
- the bean factory used by this application context- See Also:
#postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
postProcessBeanFactory
protected void postProcessBeanFactory(ConfigurableBeanFactory beanFactory)
- Hook method for postprocessing the internal bean factory.
- Parameters:
beanFactory
- the bean factory used by this application context
- Throws:
BeansException
- in case of errors- See Also:
ConfigurableBeanFactory
Copyright © 2002 mindmatters GmbH & Co. KG