org.springframework.cloud.context.environment.EnvironmentManager Java Examples
The following examples show how to use
org.springframework.cloud.context.environment.EnvironmentManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RefreshScopeConfigurationTests.java From spring-cloud-commons with Apache License 2.0 | 5 votes |
private void refresh() { EnvironmentManager environmentManager = this.context .getBean(EnvironmentManager.class); environmentManager.setProperty("message", "Hello Dave!"); org.springframework.cloud.context.scope.refresh.RefreshScope scope = this.context .getBean( org.springframework.cloud.context.scope.refresh.RefreshScope.class); scope.refreshAll(); }
Example #2
Source File: S3PropertiesContext.java From spring-s3-properties-loader with MIT License | 4 votes |
public S3PropertiesContext(ApplicationContext applicationContext, EnvironmentManager environment, ContextRefresher contextRefresher, S3Service s3Service) { this.applicationContext = applicationContext; this.environment = environment; this.contextRefresher = contextRefresher; this.s3Service = s3Service; }
Example #3
Source File: S3PropertiesLoaderConfiguration.java From spring-s3-properties-loader with MIT License | 4 votes |
@Bean S3PropertiesContext refreshProperties(ApplicationContext applicationContext, EnvironmentManager environmentManager, ContextRefresher contextRefresher, S3Service s3Service) { return new S3PropertiesContext(applicationContext, environmentManager, contextRefresher, s3Service); }
Example #4
Source File: WritableEnvironmentEndpointAutoConfiguration.java From spring-cloud-commons with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnAvailableEndpoint public WritableEnvironmentEndpointWebExtension writableEnvironmentEndpointWebExtension( WritableEnvironmentEndpoint endpoint, EnvironmentManager environment) { return new WritableEnvironmentEndpointWebExtension(endpoint, environment); }
Example #5
Source File: LifecycleMvcEndpointAutoConfiguration.java From spring-cloud-commons with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean public EnvironmentManager environmentManager(ConfigurableEnvironment environment) { return new EnvironmentManager(environment); }