wheel
Class Messages

java.lang.Object
  extended by wheel.Messages

public class Messages
extends java.lang.Object

Handles localized message loading.

Author:
Henri Frilund

Constructor Summary
Messages(StandaloneComponent owner)
           
 
Method Summary
 void flushCache()
          Flushes message cache.
 java.lang.String getMessage(java.lang.String key)
          Returns a localized message with the following rules:
Search a .properties file with the same name as the owning complex component from the same package as the complex component If not found, search from a .properties file with the same name and package as the owning complex component's super class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages(StandaloneComponent owner)
Method Detail

getMessage

public java.lang.String getMessage(java.lang.String key)
Returns a localized message with the following rules:
  1. Search a .properties file with the same name as the owning complex component from the same package as the complex component
  2. If not found, search from a .properties file with the same name and package as the owning complex component's super class.
  3. Repeat #2 until a message is found or the name of the class is wheel.components.Component.

    Parameters:
    key -
    Returns:

flushCache

public void flushCache()
Flushes message cache.



Copyright © 2007-2008. All Rights Reserved.