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_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 |
---|
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 org.mule.config.spring.MuleDocumentLoader |
createLoader() |
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, setValidating
afterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setId
assertBeanFactoryActive, cancelRefresh, closeBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferences
addApplicationListener, 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, toString
getClassLoader, getResource, getResourceByPath, setClassLoader
public MuleArtifactContext(MuleContext muleContext, ConfigResource[] configResources) throws org.springframework.beans.BeansException
muleContext
- the MuleContext
that own this contextconfigResources
- the configuration resources to useorg.springframework.beans.BeansException
SpringRegistry
public 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 null
org.springframework.beans.BeansException
SpringRegistry
public MuleArtifactContext(MuleContext muleContext, org.springframework.core.io.Resource[] springResources) throws org.springframework.beans.BeansException
org.springframework.beans.BeansException
public 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 null
org.springframework.beans.BeansException
SpringRegistry
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(DefaultListableBeanFactory beanFactory) throws IOException
loadBeanDefinitions
in class org.springframework.context.support.AbstractXmlApplicationContext
IOException
protected org.springframework.beans.factory.support.BeanDefinitionReader createBeanDefinitionReader(DefaultListableBeanFactory beanFactory)
protected org.mule.config.spring.MuleDocumentLoader createLoader()
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.AbstractRefreshableApplicationContext
public 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.Lifecycle
isRunning
in class org.springframework.context.support.AbstractApplicationContext
public MuleContext getMuleContext()
protected OptionalObjectsController getOptionalObjectsController()
public static ThreadLocal<MuleContext> getCurrentMuleContext()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.