Interface PropertySourceExtensionLoader.ResourcePropertySourcesRefresher
-
- Enclosing class:
- PropertySourceExtensionLoader<A extends java.lang.annotation.Annotation,EA extends PropertySourceExtensionAttributes<A>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface protected static interface PropertySourceExtensionLoader.ResourcePropertySourcesRefresher
The Refresher ofPropertySources'
forResource
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
PropertySource
,Resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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
-
-
-
Method Detail
-
refresh
void refresh(java.lang.String resourceValue, @Nullable org.springframework.core.io.Resource resource) throws java.lang.Throwable
Refresh thePropertySources
onResource
being refreshed- Parameters:
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
- Throws:
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- Parameters:
resourceValue
- the value of resource declared byPropertySourceExtension.value()
- Throws:
java.lang.Throwable
- any error occurs
-
-