接口的使用
org.springframework.context.HierarchicalMessageSource
使用HierarchicalMessageSource的程序包 程序包 说明 org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.context.support中HierarchicalMessageSource的使用
实现HierarchicalMessageSource的org.springframework.context.support中的类 修饰符和类型 类 说明 class
AbstractMessageSource
Abstract implementation of theHierarchicalMessageSource
interface, implementing common handling of message variants, making it easy to implement a specific strategy for a concrete MessageSource.class
AbstractResourceBasedMessageSource
Abstract base class forMessageSource
implementations based on resource bundle conventions, such asResourceBundleMessageSource
andReloadableResourceBundleMessageSource
.class
DelegatingMessageSource
EmptyMessageSource
that delegates all calls to the parent MessageSource.class
ReloadableResourceBundleMessageSource
Spring-specificMessageSource
implementation that accesses resource bundles using specified basenames, participating in the SpringApplicationContext
's resource loading.class
ResourceBundleMessageSource
MessageSource
implementation that accesses resource bundles using specified basenames.class
StaticMessageSource
Simple implementation ofMessageSource
which allows messages to be registered programmatically.