接口 PropertySourceExtensionLoader.ResourcePropertySourcesRefresher

  • 封闭类:
    PropertySourceExtensionLoader<A extends java.lang.annotation.Annotation,​EA extends PropertySourceExtensionAttributes<A>>
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    protected static interface PropertySourceExtensionLoader.ResourcePropertySourcesRefresher
    The Refresher of PropertySources' for Resource
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    PropertySource, Resource
    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 
      修饰符和类型 方法 说明
      default void refresh​(java.lang.String resourceValue)
      Refresh the PropertySources on the Resource(s) that was or were resolved by the value
      void refresh​(java.lang.String resourceValue, org.springframework.core.io.Resource resource)
      Refresh the PropertySources on Resource being refreshed
    • 方法详细资料

      • refresh

        void refresh​(java.lang.String resourceValue,
                     @Nullable
                     org.springframework.core.io.Resource resource)
              throws java.lang.Throwable
        Refresh the PropertySources on Resource being refreshed
        参数:
        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
        抛出:
        java.lang.Throwable - any error occurs
      • refresh

        default void refresh​(java.lang.String resourceValue)
                      throws java.lang.Throwable
        Refresh the PropertySources on the Resource(s) that was or were resolved by the value
        参数:
        resourceValue - the value of resource declared by PropertySourceExtension.value()
        抛出:
        java.lang.Throwable - any error occurs