Interface MessagesSource

All Superinterfaces:
org.springframework.context.MessageSource
All Known Implementing Classes:
PatternMatchingResourceBundleMessagesSource, ReloadableResourceBundleMessagesSource

public interface MessagesSource extends org.springframework.context.MessageSource
Extension of MessageSource to allow for getting all messages.

Adapted from magoffin.matt.xweb.util.MessagesSource.

Version:
1.0
Author:
matt
  • Method Summary

    Modifier and Type
    Method
    Description
    getKeys(Locale locale)
    Get an enumeration of keys.
    void
    Register an additional message resource at runtime.

    Methods inherited from interface org.springframework.context.MessageSource

    getMessage, getMessage, getMessage
  • Method Details

    • getKeys

      Enumeration<String> getKeys(Locale locale)
      Get an enumeration of keys.
      Parameters:
      locale - the desired locale
      Returns:
      enumeration of message keys
    • registerMessageResource

      void registerMessageResource(String resource)
      Register an additional message resource at runtime.
      Parameters:
      resource - the resource path to register