类 PropertySourceChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.context.event.ApplicationContextEvent
-
- io.microsphere.spring.config.env.event.PropertySourceChangedEvent
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
PropertySourceChangedEvent.Kind
The Kind ofPropertySource
Changed Event
-
构造器概要
构造器 限定符 构造器 说明 protected
PropertySourceChangedEvent(org.springframework.context.ApplicationContext source, PropertySourceChangedEvent.Kind kind, org.springframework.core.env.PropertySource newPropertySource)
protected
PropertySourceChangedEvent(org.springframework.context.ApplicationContext source, PropertySourceChangedEvent.Kind kind, org.springframework.core.env.PropertySource newPropertySource, org.springframework.core.env.PropertySource oldPropertySource)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static PropertySourceChangedEvent
added(org.springframework.context.ApplicationContext source, org.springframework.core.env.PropertySource newPropertySource)
Create anadded
instancePropertySourceChangedEvent.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 anremoved
instancestatic PropertySourceChangedEvent
replaced(org.springframework.context.ApplicationContext source, org.springframework.core.env.PropertySource newPropertySource, org.springframework.core.env.PropertySource oldPropertySource)
Create anreplaced
instance
-
-
-
构造器详细资料
-
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
-
getKind
public PropertySourceChangedEvent.Kind getKind()
- 返回:
- the Kind of
PropertySource
Changed Event
-
added
public static PropertySourceChangedEvent added(org.springframework.context.ApplicationContext source, @NonNull org.springframework.core.env.PropertySource newPropertySource)
Create anadded
instance- 参数:
source
-ApplicationContext
newPropertySource
- the newPropertySource
- 返回:
- 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 anreplaced
instance- 参数:
source
-ApplicationContext
newPropertySource
- the newPropertySource
oldPropertySource
- the oldPropertySource
- 返回:
- non-null
-
removed
public static PropertySourceChangedEvent removed(org.springframework.context.ApplicationContext source, @NonNull org.springframework.core.env.PropertySource oldPropertySource)
Create anremoved
instance- 参数:
source
-ApplicationContext
oldPropertySource
- the oldPropertySource
- 返回:
- non-null
-
-