Search in sources :

Example 1 with DiscardedOptionalBeanPostProcessor

use of org.mule.runtime.config.internal.processor.DiscardedOptionalBeanPostProcessor 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

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 MuleRegistryHelper (org.mule.runtime.core.internal.registry.MuleRegistryHelper)1 DefaultListableBeanFactory (org.springframework.beans.factory.support.DefaultListableBeanFactory)1