use of org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy 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