Interface PropertySourceExtensionLoader.ResourcePropertySourcesRefresher

Enclosing class:
PropertySourceExtensionLoader<A extends 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 of PropertySources' for Resource
Since:
1.0.0
Author:
Mercy
See Also:
  • PropertySource
  • Resource
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    refresh(String resourceValue)
    Refresh the PropertySources on the Resource(s) that was or were resolved by the value
    void
    refresh(String resourceValue, org.springframework.core.io.Resource resource)
    Refresh the PropertySources on Resource being refreshed
  • Method Details

    • refresh

      void refresh(String resourceValue, @Nullable org.springframework.core.io.Resource resource) throws Throwable
      Refresh the PropertySources on Resource being refreshed
      Parameters:
      resourceValue - the value of resource declared by PropertySourceExtension.value()
      resource - the optional PropertySources' Resource. If resource is null, it indicates the resource is not specified, the actual resource(s) will be resolved by the resourceValue, or refreshes the PropertySources from the specified Resource
      Throws:
      Throwable - any error occurs
    • refresh

      default void refresh(String resourceValue) throws Throwable
      Refresh the PropertySources on the Resource(s) that was or were resolved by the value
      Parameters:
      resourceValue - the value of resource declared by PropertySourceExtension.value()
      Throws:
      Throwable - any error occurs