use of org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver in project mule by mulesoft.
the class MuleArtifactContext method createBeanFactory.
@Override
protected DefaultListableBeanFactory createBeanFactory() {
// Copy all postProcessors defined in the defaultMuleConfig so that they get applied to the child container
DefaultListableBeanFactory beanFactory = new ObjectProviderAwareBeanFactory(getInternalParentBeanFactory());
beanFactory.setAutowireCandidateResolver(new ContextAnnotationAutowireCandidateResolver());
beanFactory.setInstantiationStrategy(new LaxInstantiationStrategyWrapper(new CglibSubclassingInstantiationStrategy(), optionalObjectsController));
return beanFactory;
}
Aggregations