public class MuleApplicationContext
extends org.springframework.context.support.AbstractXmlApplicationContext
MuleApplicationContext
is a simple extension application context
that allows resources to be loaded from the Classpath of file system using the
MuleBeanDefinitionReader.Modifier and Type | Field and Description |
---|---|
static String |
LEGACY_BEAN_READER_CLASS |
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAME
Constructor and Description |
---|
MuleApplicationContext(MuleContext muleContext,
Registry registry,
ConfigResource[] configResources)
Parses configuration files creating a spring ApplicationContext which is used
as a parent registry using the SpringRegistry registry implementation to wraps
the spring ApplicationContext
|
MuleApplicationContext(MuleContext muleContext,
Registry registry,
ConfigResource[] configResources,
org.springframework.context.ApplicationContext parent)
Parses configuration files creating a spring ApplicationContext which is used
as a parent registry using the SpringRegistry registry implementation to wraps
the spring ApplicationContext
|
MuleApplicationContext(MuleContext muleContext,
Registry registry,
ConfigResource[] configResources,
boolean refresh) |
MuleApplicationContext(MuleContext muleContext,
Registry registry,
org.springframework.core.io.Resource[] configResources) |
MuleApplicationContext(MuleContext muleContext,
Registry registry,
org.springframework.core.io.Resource[] springResources,
org.springframework.context.ApplicationContext parent) |
MuleApplicationContext(MuleContext muleContext,
Registry registry,
org.springframework.core.io.Resource[] springResources,
boolean refresh) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.beans.factory.support.DefaultListableBeanFactory |
createBeanFactory() |
protected org.springframework.core.io.Resource[] |
getConfigResources() |
protected void |
loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) |
protected void |
prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
setupParentSpringRegistry(Registry registry)
Sets up TransientRegistry SpringRegistry parent relationship here.
|
initBeanDefinitionReader, loadBeanDefinitions, setValidating
afterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
cancelRefresh, closeBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
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, getResourcePatternResolver, getResources, getStartupDate, getType, initApplicationEventMulticaster, initLifecycleProcessor, initMessageSource, initPropertySources, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toString
getClassLoader, getResource, getResourceByPath, setClassLoader
public static final String LEGACY_BEAN_READER_CLASS
public MuleApplicationContext(MuleContext muleContext, Registry registry, ConfigResource[] configResources)
registry
- configResources
- SpringRegistry
public MuleApplicationContext(MuleContext muleContext, Registry registry, ConfigResource[] configResources, org.springframework.context.ApplicationContext parent)
registry
- configLocations
- parent
- SpringRegistry
public MuleApplicationContext(MuleContext muleContext, Registry registry, org.springframework.core.io.Resource[] configResources)
registry
- configLocations
- public MuleApplicationContext(MuleContext muleContext, Registry registry, ConfigResource[] configResources, boolean refresh) throws org.springframework.beans.BeansException
registry
- configResources
- refresh
- org.springframework.beans.BeansException
public MuleApplicationContext(MuleContext muleContext, Registry registry, org.springframework.core.io.Resource[] springResources, org.springframework.context.ApplicationContext parent) throws IOException
registry
- configLocations
- parent
- IOException
public MuleApplicationContext(MuleContext muleContext, Registry registry, org.springframework.core.io.Resource[] springResources, boolean refresh) throws org.springframework.beans.BeansException
registry
- configLocations
- refresh
- org.springframework.beans.BeansException
protected void setupParentSpringRegistry(Registry registry)
registry
- protected void prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
prepareBeanFactory
in class org.springframework.context.support.AbstractApplicationContext
protected org.springframework.core.io.Resource[] getConfigResources()
getConfigResources
in class org.springframework.context.support.AbstractXmlApplicationContext
protected void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) throws IOException
loadBeanDefinitions
in class org.springframework.context.support.AbstractXmlApplicationContext
IOException
protected org.springframework.beans.factory.support.DefaultListableBeanFactory createBeanFactory()
createBeanFactory
in class org.springframework.context.support.AbstractRefreshableApplicationContext
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.