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, 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,
Optional<org.mule.runtime.api.component.ConfigurationProperties> parentConfigurationProperties)
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 |
|---|---|
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, createBeanFactory, createInitialApplicationComponents, customizeBeanFactory, getConfigResources, getMuleContext, 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, Optional<org.mule.runtime.api.component.ConfigurationProperties> parentConfigurationProperties) 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.SpringRegistryparentConfigurationProperties - org.springframework.beans.BeansExceptionprotected XmlConfigurationDocumentLoader newXmlConfigurationDocumentLoader()
newXmlConfigurationDocumentLoader 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.