接口 PropertySourceExtensionLoader.ResourcePropertySourcesRefresher
-
- 封闭类:
- PropertySourceExtensionLoader<A extends java.lang.annotation.Annotation,EA extends PropertySourceExtensionAttributes<A>>
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface protected static interface PropertySourceExtensionLoader.ResourcePropertySourcesRefresher
The Refresher ofPropertySources'
forResource
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
PropertySource
,Resource
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default void
refresh(java.lang.String resourceValue)
Refresh thePropertySources
on theResource
(s) that was or were resolved by the valuevoid
refresh(java.lang.String resourceValue, org.springframework.core.io.Resource resource)
Refresh thePropertySources
onResource
being refreshed
-
-
-
方法详细资料
-
refresh
void refresh(java.lang.String resourceValue, @Nullable org.springframework.core.io.Resource resource) throws java.lang.Throwable
Refresh thePropertySources
onResource
being refreshed- 参数:
resourceValue
- the value of resource declared byPropertySourceExtension.value()
resource
- the optionalPropertySources'
Resource
. Ifresource
isnull
, it indicates the resource is not specified, the actual resource(s) will be resolved by theresourceValue
, or refreshes thePropertySources
from the specifiedResource
- 抛出:
java.lang.Throwable
- any error occurs
-
refresh
default void refresh(java.lang.String resourceValue) throws java.lang.Throwable
Refresh thePropertySources
on theResource
(s) that was or were resolved by the value- 参数:
resourceValue
- the value of resource declared byPropertySourceExtension.value()
- 抛出:
java.lang.Throwable
- any error occurs
-
-