Class GlobalConfig

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>

    @Component
    public class GlobalConfig
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobalConfig​(org.springframework.core.env.Environment environment)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConfigTest()  
      void onApplicationEvent​(org.springframework.cloud.context.environment.EnvironmentChangeEvent event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GlobalConfig

        public GlobalConfig​(org.springframework.core.env.Environment environment)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.cloud.context.environment.EnvironmentChangeEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>
      • getConfigTest

        public java.lang.String getConfigTest()