Search in sources :

Example 6 with MuleRegistryHelper

use of org.mule.runtime.core.internal.registry.MuleRegistryHelper in project mule by mulesoft.

the class MuleArtifactContext method prepareBeanFactory.

@Override
protected void prepareBeanFactory(ConfigurableListableBeanFactory beanFactory) {
    super.prepareBeanFactory(beanFactory);
    registerEditors(beanFactory);
    registerAnnotationConfigProcessors((BeanDefinitionRegistry) beanFactory, beanFactory);
    addBeanPostProcessors(beanFactory, new MuleContextPostProcessor(muleContext), new PostRegistrationActionsPostProcessor((MuleRegistryHelper) muleContext.getRegistry(), beanFactory), new DiscardedOptionalBeanPostProcessor(optionalObjectsController, (DefaultListableBeanFactory) beanFactory), new LifecycleStatePostProcessor(muleContext.getLifecycleManager().getState()), new ComponentLocatorCreatePostProcessor(componentLocator));
    beanFactory.registerSingleton(OBJECT_MULE_CONTEXT, muleContext);
    prepareObjectProviders();
}
Also used : PostRegistrationActionsPostProcessor(org.mule.runtime.config.internal.processor.PostRegistrationActionsPostProcessor) MuleRegistryHelper(org.mule.runtime.core.internal.registry.MuleRegistryHelper) LifecycleStatePostProcessor(org.mule.runtime.config.internal.processor.LifecycleStatePostProcessor) DefaultListableBeanFactory(org.springframework.beans.factory.support.DefaultListableBeanFactory) DiscardedOptionalBeanPostProcessor(org.mule.runtime.config.internal.processor.DiscardedOptionalBeanPostProcessor) ComponentLocatorCreatePostProcessor(org.mule.runtime.config.internal.processor.ComponentLocatorCreatePostProcessor)

Aggregations

MuleRegistryHelper (org.mule.runtime.core.internal.registry.MuleRegistryHelper)6 Test (org.junit.Test)2 DefaultRegistryBroker (org.mule.runtime.core.internal.registry.DefaultRegistryBroker)2 ErrorTypeRepository (org.mule.runtime.api.exception.ErrorTypeRepository)1 InitialisationException (org.mule.runtime.api.lifecycle.InitialisationException)1 ComponentLocatorCreatePostProcessor (org.mule.runtime.config.internal.processor.ComponentLocatorCreatePostProcessor)1 DiscardedOptionalBeanPostProcessor (org.mule.runtime.config.internal.processor.DiscardedOptionalBeanPostProcessor)1 LifecycleStatePostProcessor (org.mule.runtime.config.internal.processor.LifecycleStatePostProcessor)1 PostRegistrationActionsPostProcessor (org.mule.runtime.config.internal.processor.PostRegistrationActionsPostProcessor)1 Converter (org.mule.runtime.core.api.transformer.Converter)1 DataTypeConversionResolver (org.mule.runtime.core.api.transformer.DataTypeConversionResolver)1 StreamCloserService (org.mule.runtime.core.api.util.StreamCloserService)1 DefaultMuleContext (org.mule.runtime.core.internal.context.DefaultMuleContext)1 ErrorTypeLocatorFactory.createDefaultErrorTypeLocator (org.mule.runtime.core.internal.exception.ErrorTypeLocatorFactory.createDefaultErrorTypeLocator)1 ErrorTypeRepositoryFactory.createDefaultErrorTypeRepository (org.mule.runtime.core.internal.exception.ErrorTypeRepositoryFactory.createDefaultErrorTypeRepository)1 MuleLifecycleInterceptor (org.mule.runtime.core.internal.lifecycle.MuleLifecycleInterceptor)1 MuleRegistry (org.mule.runtime.core.internal.registry.MuleRegistry)1 RegistryDelegatingInjector (org.mule.runtime.core.internal.registry.RegistryDelegatingInjector)1 DynamicDataTypeConversionResolver (org.mule.runtime.core.internal.transformer.DynamicDataTypeConversionResolver)1 ErrorTypeLocator (org.mule.runtime.core.privileged.exception.ErrorTypeLocator)1