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,
ArtifactConfiguration artifactConfiguration,
OptionalObjectsController optionalObjectsController,
Map<String,String> artifactProperties,
ArtifactType artifactType)
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) |
ConnectivityTestingService |
getConnectivityTestingService() |
org.mule.runtime.api.metadata.MetadataService |
getMetadataService() |
void |
initializeComponent(String componentName)
Calling this method guarantees that the requested component from the configuration
will be created.
|
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, ArtifactConfiguration artifactConfiguration, OptionalObjectsController optionalObjectsController, Map<String,String> artifactProperties, ArtifactType artifactType) throws org.springframework.beans.BeansException
muleContext - the MuleContext that own this contextartifactConfiguration - the mule configuration defined programmaticallyoptionalObjectsController - the OptionalObjectsController to use. Cannot be null @see
org.mule.runtime.config.spring.SpringRegistryorg.springframework.beans.BeansExceptionprotected void createInitialApplicationComponents(DefaultListableBeanFactory beanFactory, org.springframework.beans.factory.support.BeanDefinitionReader beanDefinitionReader)
createInitialApplicationComponents in class MuleArtifactContextpublic void initializeComponent(String componentName)
LazyComponentInitializerinitializeComponent in interface LazyComponentInitializerinitializeComponent in class MuleArtifactContextcomponentName - the identifier of the configuration component.public ConnectivityTestingService getConnectivityTestingService()
getConnectivityTestingService in class MuleArtifactContextpublic org.mule.runtime.api.metadata.MetadataService getMetadataService()
getMetadataService in class MuleArtifactContextCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.