public class StringManager extends StringManagerBase
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". This means that localized information will be contained in a LocalStrings.properties file located in the package directory of the classpath.
Modifier and Type | Method and Description |
---|---|
static StringManager |
getManager(Class callerClass)
Returns a local string manager for the given package name.
|
static StringManager |
getManager(String packageName,
ClassLoader classLoader)
Returns a local string manager for the given package name.
|
getString, getString, getString, getString, getString, getString, getStringManager, getStringWithDefault, getStringWithDefault
public static StringManager getManager(String packageName, ClassLoader classLoader)
packageName
- name of the package of the srcpublic static StringManager getManager(Class callerClass)
callerClass
- the object making the callCopyright © 2020. All rights reserved.