Commit ba4b551f by nobodyiam

add comment why PropertySourcesProcessor implements BeanFactoryPostProcessor…

add comment why PropertySourcesProcessor implements BeanFactoryPostProcessor instead of BeanDefinitionRegistryPostProcessor
parent c09b7be8
package com.ctrip.framework.apollo.spring.config; package com.ctrip.framework.apollo.spring.config;
import java.util.Collection; import com.google.common.collect.HashMultimap;
import java.util.Iterator; import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.Multimap;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigService;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
...@@ -13,14 +17,16 @@ import org.springframework.core.env.CompositePropertySource; ...@@ -13,14 +17,16 @@ import org.springframework.core.env.CompositePropertySource;
import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment; import org.springframework.core.env.Environment;
import com.ctrip.framework.apollo.Config; import java.util.Collection;
import com.ctrip.framework.apollo.ConfigService; import java.util.Iterator;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.Multimap;
/** /**
* Apollo Property Sources processor for Spring Annotation Based Application * Apollo Property Sources processor for Spring Annotation Based Application. <br /> <br />
*
* The reason why PropertySourcesProcessor implements {@link BeanFactoryPostProcessor} instead of
* {@link org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor} is that lower versions of
* Spring (e.g. 3.1.1) doesn't support registering BeanDefinitionRegistryPostProcessor in ImportBeanDefinitionRegistrar
* - {@link com.ctrip.framework.apollo.spring.annotation.ApolloConfigRegistrar}
* *
* @author Jason Song(song_s@ctrip.com) * @author Jason Song(song_s@ctrip.com)
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment