Class MessagesImpl

    • Method Detail

      • forClass

        public static Messages forClass​(Class forClass)
        Finds the messages for a given Messages utility class. Strings the trailing "Messages" and replaces it with "Strings" to form the base path. Loads the bundle using the default locale, and the class' class loader.
        Parameters:
        forClass -
        Returns:
        Messages for the class
      • valueForKey

        protected String valueForKey​(String key)
        Description copied from class: AbstractMessages
        Invoked to provide the value for a particular key. This may be invoked multiple times even for the same key. The implementation should ignore the case of the key.
        Specified by:
        valueForKey in class AbstractMessages
        Parameters:
        key - the key to obtain a value for (case insensitive)
        Returns:
        the value for the key, or null if this instance can not provide the value
      • getKeys

        public Set<StringgetKeys()
        Description copied from interface: Messages
        Returns a set of all the keys for which this instance may provide a value.
        Returns:
        set of keys