Moving Native config
This commit is contained in:
@@ -47,19 +47,6 @@ public class EnvironmentRepositoryConfiguration {
|
||||
return new ConfigServerHealthIndicator(repository);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Profile("native")
|
||||
protected static class NativeRepositoryConfiguration {
|
||||
|
||||
@Autowired
|
||||
private ConfigurableEnvironment environment;
|
||||
|
||||
@Bean
|
||||
public NativeEnvironmentRepository nativeEnvironmentRepository() {
|
||||
return new NativeEnvironmentRepository(this.environment);
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnMissingBean(EnvironmentRepository.class)
|
||||
protected static class DefaultRepositoryConfiguration {
|
||||
@@ -80,6 +67,19 @@ public class EnvironmentRepositoryConfiguration {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Profile("native")
|
||||
protected static class NativeRepositoryConfiguration {
|
||||
|
||||
@Autowired
|
||||
private ConfigurableEnvironment environment;
|
||||
|
||||
@Bean
|
||||
public NativeEnvironmentRepository nativeEnvironmentRepository() {
|
||||
return new NativeEnvironmentRepository(this.environment);
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Profile("git")
|
||||
protected static class GitRepositoryConfiguration extends DefaultRepositoryConfiguration {}
|
||||
|
||||
Reference in New Issue
Block a user