org.springframework.context

## 接口 HierarchicalMessageSource

- 所有超级接口:
    MessageSource
  所有已知实现类:
    AbstractMessageSource, AbstractResourceBasedMessageSource, DelegatingMessageSource, ReloadableResourceBundleMessageSource, ResourceBundleMessageSource, StaticMessageSource

      public interface HierarchicalMessageSource
      extends MessageSource

  Sub-interface of MessageSource to be implemented by objects that can resolve messages hierarchically.
  作者:
    Rod Johnson, Juergen Hoeller

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `MessageSource` | `getParentMessageSource()` Return the parent of this MessageSource, or `null` if none.
    `void` | `setParentMessageSource(MessageSource parent)` Set the parent that will be used to try to resolve messages that this object can't resolve.

    - ### 从接口继承的方法 org.springframework.context.MessageSource

      `getMessage, getMessage, getMessage`

- - ### 方法详细资料

    - #### setParentMessageSource

          void setParentMessageSource(@Nullable
                                      MessageSource parent)

      Set the parent that will be used to try to resolve messages that this object can't resolve.
      参数:
        `parent` - the parent MessageSource that will be used to resolve messages that this object can't resolve. May be `null`, in which case no further resolution is possible.

    - #### getParentMessageSource

          @Nullable
          MessageSource getParentMessageSource()

      Return the parent of this MessageSource, or `null` if none.