com.sun.genericra.util
Class StringManager

java.lang.Object
  extended by com.sun.genericra.util.StringManagerBase
      extended by com.sun.genericra.util.StringManager

public class StringManager
extends StringManagerBase

Implementation of a local string manager. Provides access to i18n messages for classes that need them.

One StringManager per package can be created and accessed by the getManager method call. The ResourceBundle name is constructed from the given package name in the constructor plus the suffix of "LocalStrings". Thie means that localized information will be contained in a LocalStrings.properties file located in the package directory of the classpath.


Method Summary
static StringManager getManager(java.lang.Class callerClass)
          Returns a local string manager for the given package name.
static StringManager getManager(java.lang.String packageName)
          Returns a local string manager for the given package name.
 
Methods inherited from class com.sun.genericra.util.StringManagerBase
getString, getString, getString, getString, getString, getString, getStringManager, getStringWithDefault, getStringWithDefault
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getManager

public static StringManager getManager(java.lang.String packageName)
Returns a local string manager for the given package name.

Parameters:
packageName - name of the package of the src
Returns:
a local string manager for the given package name

getManager

public static StringManager getManager(java.lang.Class callerClass)
Returns a local string manager for the given package name.

Parameters:
callerClass - the object making the call
Returns:
a local string manager for the given package name