类 PropertySourceChangedEvent

  • 所有已实现的接口:
    java.io.Serializable

    public class PropertySourceChangedEvent
    extends org.springframework.context.event.ApplicationContextEvent
    The event raised when one single PropertySource is changed
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    PropertySource, 序列化表格
    • 字段概要

      • 从类继承的字段 java.util.EventObject

        source
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      static PropertySourceChangedEvent added​(org.springframework.context.ApplicationContext source, org.springframework.core.env.PropertySource newPropertySource)
      Create an added instance
      PropertySourceChangedEvent.Kind getKind()  
      org.springframework.core.env.PropertySource getNewPropertySource()  
      org.springframework.core.env.PropertySource getOldPropertySource()  
      static PropertySourceChangedEvent removed​(org.springframework.context.ApplicationContext source, org.springframework.core.env.PropertySource oldPropertySource)
      Create an removed instance
      static PropertySourceChangedEvent replaced​(org.springframework.context.ApplicationContext source, org.springframework.core.env.PropertySource newPropertySource, org.springframework.core.env.PropertySource oldPropertySource)
      Create an replaced instance
      • 从类继承的方法 org.springframework.context.event.ApplicationContextEvent

        getApplicationContext
      • 从类继承的方法 org.springframework.context.ApplicationEvent

        getTimestamp
      • 从类继承的方法 java.util.EventObject

        getSource, toString
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • PropertySourceChangedEvent

        protected PropertySourceChangedEvent​(org.springframework.context.ApplicationContext source,
                                             PropertySourceChangedEvent.Kind kind,
                                             @Nullable
                                             org.springframework.core.env.PropertySource newPropertySource,
                                             @Nullable
                                             org.springframework.core.env.PropertySource oldPropertySource)
      • PropertySourceChangedEvent

        protected PropertySourceChangedEvent​(org.springframework.context.ApplicationContext source,
                                             PropertySourceChangedEvent.Kind kind,
                                             @Nullable
                                             org.springframework.core.env.PropertySource newPropertySource)
    • 方法详细资料

      • getNewPropertySource

        @Nullable
        public org.springframework.core.env.PropertySource getNewPropertySource()
        返回:
        the new PropertySource
      • getOldPropertySource

        @Nullable
        public org.springframework.core.env.PropertySource getOldPropertySource()
        返回:
        the old PropertySource
      • added

        public static PropertySourceChangedEvent added​(org.springframework.context.ApplicationContext source,
                                                       @NonNull
                                                       org.springframework.core.env.PropertySource newPropertySource)
        Create an added instance
        参数:
        source - ApplicationContext
        newPropertySource - the new PropertySource
        返回:
        non-null
      • replaced

        public static PropertySourceChangedEvent replaced​(org.springframework.context.ApplicationContext source,
                                                          @NonNull
                                                          org.springframework.core.env.PropertySource newPropertySource,
                                                          @NonNull
                                                          org.springframework.core.env.PropertySource oldPropertySource)
        Create an replaced instance
        参数:
        source - ApplicationContext
        newPropertySource - the new PropertySource
        oldPropertySource - the old PropertySource
        返回:
        non-null
      • removed

        public static PropertySourceChangedEvent removed​(org.springframework.context.ApplicationContext source,
                                                         @NonNull
                                                         org.springframework.core.env.PropertySource oldPropertySource)
        Create an removed instance
        参数:
        source - ApplicationContext
        oldPropertySource - the old PropertySource
        返回:
        non-null