public class MuleArtifactContext
extends org.springframework.context.support.AbstractXmlApplicationContext
MuleArtifactContext is a simple extension application context
that allows resources to be loaded from the Classpath of file system using the
MuleBeanDefinitionReader.APPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMECONFIG_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 |
|---|
MuleArtifactContext(MuleContext muleContext,
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
|
MuleArtifactContext(MuleContext muleContext,
ConfigResource[] configResources,
OptionalObjectsController optionalObjectsController)
Parses configuration files creating a spring ApplicationContext which is used
as a parent registry using the SpringRegistry registry implementation to wraps
the spring ApplicationContext
|
MuleArtifactContext(MuleContext muleContext,
org.springframework.core.io.Resource[] springResources) |
MuleArtifactContext(MuleContext muleContext,
org.springframework.core.io.Resource[] springResources,
OptionalObjectsController optionalObjectsController)
Parses configuration files creating a spring ApplicationContext which is used
as a parent registry using the SpringRegistry registry implementation to wraps
the spring ApplicationContext
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.factory.support.BeanDefinitionReader |
createBeanDefinitionReader(DefaultListableBeanFactory beanFactory) |
protected DefaultListableBeanFactory |
createBeanFactory() |
protected Class<? extends MuleBeanDefinitionDocumentReader> |
getBeanDefinitionDocumentReaderClass() |
protected org.springframework.core.io.Resource[] |
getConfigResources() |
static ThreadLocal<MuleContext> |
getCurrentMuleContext() |
MuleContext |
getMuleContext() |
protected OptionalObjectsController |
getOptionalObjectsController() |
boolean |
isRunning()
This implementation returns
false if the
context hasn't been initialised yet, in opposition
to the default implementation which throws
an exception |
protected void |
loadBeanDefinitions(DefaultListableBeanFactory beanFactory) |
protected void |
prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
registerInjectorProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
protected void |
registerPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
org.springframework.beans.factory.support.RootBeanDefinition definition,
String beanName) |
initBeanDefinitionReader, loadBeanDefinitions, setValidatingafterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, close, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, destroy, destroyBeans, doClose, findAnnotationOnBean, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getApplicationName, getAutowireCapableBeanFactory, getBean, getBean, getBean, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForAnnotation, 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, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toStringgetClassLoader, getResource, getResourceByPath, setClassLoaderpublic MuleArtifactContext(MuleContext muleContext, ConfigResource[] configResources) throws org.springframework.beans.BeansException
muleContext - the MuleContext that own this contextconfigResources - the configuration resources to useorg.springframework.beans.BeansExceptionSpringRegistrypublic MuleArtifactContext(MuleContext muleContext, ConfigResource[] configResources, OptionalObjectsController optionalObjectsController) throws org.springframework.beans.BeansException
muleContext - the MuleContext that own this contextconfigResources - the configuration resources to useoptionalObjectsController - the OptionalObjectsController to use. Cannot be nullorg.springframework.beans.BeansExceptionSpringRegistrypublic MuleArtifactContext(MuleContext muleContext, org.springframework.core.io.Resource[] springResources) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic MuleArtifactContext(MuleContext muleContext, org.springframework.core.io.Resource[] springResources, OptionalObjectsController optionalObjectsController) throws org.springframework.beans.BeansException
muleContext - the MuleContext that own this contextspringResources - the configuration resources to useoptionalObjectsController - the OptionalObjectsController to use. Cannot be nullorg.springframework.beans.BeansExceptionSpringRegistryprotected void prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
prepareBeanFactory in class org.springframework.context.support.AbstractApplicationContextprotected org.springframework.core.io.Resource[] getConfigResources()
getConfigResources in class org.springframework.context.support.AbstractXmlApplicationContextprotected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException
loadBeanDefinitions in class org.springframework.context.support.AbstractXmlApplicationContextIOExceptionprotected org.springframework.beans.factory.support.BeanDefinitionReader createBeanDefinitionReader(DefaultListableBeanFactory beanFactory)
protected void registerInjectorProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
protected void registerPostProcessor(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
org.springframework.beans.factory.support.RootBeanDefinition definition,
String beanName)
protected Class<? extends MuleBeanDefinitionDocumentReader> getBeanDefinitionDocumentReaderClass()
protected DefaultListableBeanFactory createBeanFactory()
createBeanFactory in class org.springframework.context.support.AbstractRefreshableApplicationContextpublic boolean isRunning()
false if the
context hasn't been initialised yet, in opposition
to the default implementation which throws
an exceptionisRunning in interface org.springframework.context.LifecycleisRunning in class org.springframework.context.support.AbstractApplicationContextpublic MuleContext getMuleContext()
protected OptionalObjectsController getOptionalObjectsController()
public static ThreadLocal<MuleContext> getCurrentMuleContext()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.