Class EnvironmentManager
- java.lang.Object
-
- org.springframework.cloud.context.environment.EnvironmentManager
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware
@Component @ManagedResource public class EnvironmentManager extends Object implements org.springframework.context.ApplicationEventPublisherAware
Entry point for making local (but volatile) changes to theEnvironmentof a running application. Allows properties to be added and values changed, simply by adding them to a high-priority property source in the existing Environment.- Author:
- Dave Syer
-
-
Constructor Summary
Constructors Constructor Description EnvironmentManager(org.springframework.core.env.ConfigurableEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetProperty(String name)Map<String,Object>reset()voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)voidsetProperty(String name, String value)
-