public class LazyMuleArtifactContext extends MuleArtifactContext implements LazyComponentInitializer, LazyComponentCreator
MuleArtifactContext that allows to create configuration components lazily.
Components will be created upon request to use the from the exposed services.org.springframework.core.io.DefaultResourceLoader.ClassPathContextResourceLazyComponentInitializer.ComponentLocationFilterapplicationModel, beanDefinitionFactory, componentBuildingDefinitionRegistry, componentLocator, INNER_BEAN_PREFIX, muleContext, objectProviders, xmlApplicationParserAPPLICATION_EVENT_MULTICASTER_BEAN_NAME, LIFECYCLE_PROCESSOR_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAMELAZY_COMPONENT_INITIALIZER_SERVICE_KEYCONFIG_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.app.declaration.api.ArtifactDeclaration artifactDeclaration,
OptionalObjectsController optionalObjectsController,
Map<String,String> artifactProperties,
ArtifactType artifactType,
List<ClassLoader> pluginsClassLoaders,
Optional<org.mule.runtime.api.component.ConfigurationProperties> parentConfigurationProperties,
boolean disableXmlValidations)
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 |
|---|---|
void |
createComponent(org.mule.runtime.api.component.location.Location location)
Calling this method guarantees that the requested component from the configuration will be created.
|
void |
initializeComponent(org.mule.runtime.api.component.location.Location location)
Calling this method guarantees that the requested component from the configuration will be created and
initialized.
|
void |
initializeComponents(LazyComponentInitializer.ComponentLocationFilter filter)
Calling this method guarantees that the components accepted by the filter from the configuration will be created and
initialized.
|
protected void |
prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
protected void |
prepareObjectProviders() |
addBeanPostProcessors, close, convert, createApplicationComponents, createBeanFactory, customizeBeanFactory, destroy, getDependencyResolver, getMuleContext, getOptionalObjectsController, getPrototypeBeanWithRootContainer, getRegistry, isRunning, loadBeanDefinitions, postProcessBeanDefinition, postProcessBeanFactory, registerInjectorProcessor, registerObjectFromObjectProviders, registerPostProcessorafterPropertiesSet, getConfigLocations, getDefaultConfigLocations, resolvePath, setBeanName, setConfigLocation, setConfigLocations, setIdassertBeanFactoryActive, cancelRefresh, closeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory, setAllowBeanDefinitionOverriding, setAllowCircularReferencesaddApplicationListener, addBeanFactoryPostProcessor, containsBean, containsBeanDefinition, containsLocalBean, createEnvironment, 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.app.declaration.api.ArtifactDeclaration artifactDeclaration, OptionalObjectsController optionalObjectsController, Map<String,String> artifactProperties, ArtifactType artifactType, List<ClassLoader> pluginsClassLoaders, Optional<org.mule.runtime.api.component.ConfigurationProperties> parentConfigurationProperties, boolean disableXmlValidations) 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.internal.SpringRegistryparentConfigurationProperties - disableXmlValidations - true when loading XML configs it will not apply validations.org.springframework.beans.BeansExceptionprotected void prepareBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
prepareBeanFactory in class MuleArtifactContextpublic void initializeComponent(org.mule.runtime.api.component.location.Location location)
LazyComponentInitializerinitializeComponent in interface LazyComponentInitializerlocation - the location of the configuration component.public void initializeComponents(LazyComponentInitializer.ComponentLocationFilter filter)
LazyComponentInitializerinitializeComponents in interface LazyComponentInitializerfilter - LazyComponentInitializer.ComponentLocationFilter to select the Component to be initialized and they dependent ones.public void createComponent(org.mule.runtime.api.component.location.Location location)
LazyComponentCreatorcreateComponent in interface LazyComponentCreatorlocation - the location of the configuration component.protected void prepareObjectProviders()
prepareObjectProviders in class MuleArtifactContextCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.