Class 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 the Environment of 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 Detail

      • EnvironmentManager

        public EnvironmentManager​(org.springframework.core.env.ConfigurableEnvironment environment)
    • Method Detail

      • setApplicationEventPublisher

        public void setApplicationEventPublisher​(org.springframework.context.ApplicationEventPublisher publisher)
        Specified by:
        setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
      • setProperty

        @ManagedOperation
        public void setProperty​(String name,
                                String value)
      • getProperty

        @ManagedOperation
        public Object getProperty​(String name)