Search in sources :

Example 1 with SpringValueDefinitionProcessor

use of com.ctrip.framework.apollo.spring.property.SpringValueDefinitionProcessor in project apollo by ctripcorp.

the class ConfigPropertySourcesProcessor method processSpringValueDefinition.

/**
 * For Spring 3.x versions, the BeanDefinitionRegistryPostProcessor would not be
 * instantiated if it is added in postProcessBeanDefinitionRegistry phase, so we have to manually
 * call the postProcessBeanDefinitionRegistry method of SpringValueDefinitionProcessor here...
 */
private void processSpringValueDefinition(BeanDefinitionRegistry registry) {
    SpringValueDefinitionProcessor springValueDefinitionProcessor = new SpringValueDefinitionProcessor();
    springValueDefinitionProcessor.postProcessBeanDefinitionRegistry(registry);
}
Also used : SpringValueDefinitionProcessor(com.ctrip.framework.apollo.spring.property.SpringValueDefinitionProcessor)

Aggregations

SpringValueDefinitionProcessor (com.ctrip.framework.apollo.spring.property.SpringValueDefinitionProcessor)1