public class LazyMuleArtifactContext extends MuleArtifactContext implements LazyComponentInitializer
MuleArtifactContext that allows to create configuration components lazily.
Components will be created upon request to use the from the exposed services.applicationModel, beanDefinitionFactory, componentBuildingDefinitionRegistry, INNER_BEAN_PREFIX, muleContext, useNewParsingMechanism, xmlApplicationParserAPPLICATION_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 |
|---|
LazyMuleArtifactContext(MuleContext muleContext,
ConfigResource[] artifactConfigResources,
org.mule.runtime.api.app.declaration.ArtifactDeclaration artifactDeclaration,
OptionalObjectsController optionalObjectsController,
Map<String,String> artifactProperties,
ArtifactType artifactType,
List<ClassLoader> pluginsClassLoaders)
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 void |
createInitialApplicationComponents(DefaultListableBeanFactory beanFactory,
org.springframework.beans.factory.support.BeanDefinitionReader beanDefinitionReader)
During a lazy intialization of an artifact the components should not be created.
|
ConnectivityTestingService |
getConnectivityTestingService() |
org.mule.runtime.api.metadata.MetadataService |
getMetadataService() |
void |
initializeComponent(org.mule.runtime.api.component.location.Location location)
Calling this method guarantees that the requested component from the configuration will be created.
|
protected XmlConfigurationDocumentLoader |
newXmlConfigurationDocumentLoader() |
close, createApplicationComponents, createBeanDefinitionDocumentReader, createBeanDefinitionReader, createBeanFactory, createLoader, customizeBeanFactory, getBeanDefinitionDocumentReaderClass, getConfigResources, getCurrentMuleContext, getMuleContext, getOldParsingMechanismComponentIdentifiers, getOptionalObjectsController, isRunning, loadBeanDefinitions, postProcessBeanDefinition, postProcessBeanFactory, prepareBeanFactory, registerInjectorProcessor, registerPostProcessorinitBeanDefinitionReader, loadBeanDefinitions, setValidatingafterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, 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, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setEnvironment, setParent, start, stop, toStringgetClassLoader, getResource, getResourceByPath, setClassLoaderpublic LazyMuleArtifactContext(MuleContext muleContext, ConfigResource[] artifactConfigResources, org.mule.runtime.api.app.declaration.ArtifactDeclaration artifactDeclaration, OptionalObjectsController optionalObjectsController, Map<String,String> artifactProperties, ArtifactType artifactType, List<ClassLoader> pluginsClassLoaders) throws org.springframework.beans.BeansException
muleContext - the MuleContext that own this contextartifactDeclaration - the mule configuration defined programmaticallyoptionalObjectsController - the OptionalObjectsController to use. Cannot be null @see
org.mule.runtime.config.spring.SpringRegistryorg.springframework.beans.BeansExceptionprotected XmlConfigurationDocumentLoader newXmlConfigurationDocumentLoader()
newXmlConfigurationDocumentLoader in class MuleArtifactContextprotected void createInitialApplicationComponents(DefaultListableBeanFactory beanFactory, org.springframework.beans.factory.support.BeanDefinitionReader beanDefinitionReader)
createInitialApplicationComponents in class MuleArtifactContextpublic void initializeComponent(org.mule.runtime.api.component.location.Location location)
LazyComponentInitializerinitializeComponent in interface LazyComponentInitializerinitializeComponent in class MuleArtifactContextlocation - the location of the configuration component.public ConnectivityTestingService getConnectivityTestingService()
getConnectivityTestingService in class MuleArtifactContextpublic org.mule.runtime.api.metadata.MetadataService getMetadataService()
getMetadataService in class MuleArtifactContextCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.