org.openspaces.pu.container.support
Class ResourceApplicationContext
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
org.springframework.context.support.AbstractApplicationContext
org.springframework.context.support.AbstractRefreshableApplicationContext
org.springframework.context.support.AbstractRefreshableConfigApplicationContext
org.springframework.context.support.AbstractXmlApplicationContext
org.openspaces.pu.container.support.ResourceApplicationContext
- All Implemented Interfaces:
- Aware, BeanFactory, BeanNameAware, DisposableBean, HierarchicalBeanFactory, InitializingBean, ListableBeanFactory, ApplicationContext, ApplicationEventPublisher, ConfigurableApplicationContext, Lifecycle, MessageSource, EnvironmentCapable, ResourceLoader, ResourcePatternResolver
public class ResourceApplicationContext
- extends AbstractXmlApplicationContext
A Spring ApplicationContext
implementation that works with
Spring Resource
for config locations.
By default this application does not "start" and requires explicit call to AbstractApplicationContext.refresh()
.
- Author:
- kimchy
Methods inherited from class org.springframework.context.support.AbstractApplicationContext |
addApplicationListener, addBeanFactoryPostProcessor, addListener, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getDisplayName, getEnvironment, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toString |
ResourceApplicationContext
public ResourceApplicationContext(Resource[] resources,
ApplicationContext parent)
- Create this application context with a list of resources for configuration and an optional
parent application context (can be
null
).
- Parameters:
resources
- List of xml config resourcesparent
- An optional parent application context
getConfigResources
protected Resource[] getConfigResources()
- Returns the config resources this application context uses.
- Overrides:
getConfigResources
in class AbstractXmlApplicationContext
addBeanPostProcessor
public void addBeanPostProcessor(BeanPostProcessor beanPostProcessor)
- Adds Spring bean post processor. Note, this method should be called before the
AbstractApplicationContext.refresh()
is called on this application context for the bean post processor to take
affect.
- Parameters:
beanPostProcessor
- The bean post processor to add
createBeanFactory
protected DefaultListableBeanFactory createBeanFactory()
- Creates a new bean factory by delegating to the super bean factory creation and then adding
all the registered
BeanPostProcessor
s.
- Overrides:
createBeanFactory
in class AbstractRefreshableApplicationContext
getResourcePatternResolver
protected ResourcePatternResolver getResourcePatternResolver()
- Overrides in order to return
PUPathMatchingResourcePatternResolver
which allows to perform path mathcing over a remote processing unit.
- Overrides:
getResourcePatternResolver
in class AbstractApplicationContext
Copyright © GigaSpaces.