Java 类org.springframework.boot.env.EnvironmentPostProcessor 实例源码
项目:https-github.com-g0t4-jenkins2-course-spring-boot
文件:ConfigFileApplicationListener.java
private void onApplicationEnvironmentPreparedEvent(
ApplicationEnvironmentPreparedEvent event) {
List<EnvironmentPostProcessor> postProcessors = loadPostProcessors();
postProcessors.add(this);
AnnotationAwareOrderComparator.sort(postProcessors);
for (EnvironmentPostProcessor postProcessor : postProcessors) {
postProcessor.postProcessEnvironment(event.getEnvironment(),
event.getSpringApplication());
}
}
项目:spring-boot-concourse
文件:ConfigFileApplicationListener.java
private void onApplicationEnvironmentPreparedEvent(
ApplicationEnvironmentPreparedEvent event) {
List<EnvironmentPostProcessor> postProcessors = loadPostProcessors();
postProcessors.add(this);
AnnotationAwareOrderComparator.sort(postProcessors);
for (EnvironmentPostProcessor postProcessor : postProcessors) {
postProcessor.postProcessEnvironment(event.getEnvironment(),
event.getSpringApplication());
}
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot
文件:ConfigFileApplicationListener.java
List<EnvironmentPostProcessor> loadPostProcessors() {
return SpringFactoriesLoader.loadFactories(EnvironmentPostProcessor.class,
getClass().getClassLoader());
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot
文件:ConfigFileApplicationListenerTests.java
@Override
List<EnvironmentPostProcessor> loadPostProcessors() {
return new ArrayList<EnvironmentPostProcessor>(
Arrays.asList(new LowestPrecedenceEnvironmentPostProcessor()));
}
项目:spring-boot-concourse
文件:ConfigFileApplicationListener.java
List<EnvironmentPostProcessor> loadPostProcessors() {
return SpringFactoriesLoader.loadFactories(EnvironmentPostProcessor.class,
getClass().getClassLoader());
}
项目:spring-boot-concourse
文件:ConfigFileApplicationListenerTests.java
@Override
List<EnvironmentPostProcessor> loadPostProcessors() {
return new ArrayList<EnvironmentPostProcessor>(
Arrays.asList(new LowestPrecedenceEnvironmentPostProcessor()));
}