| java.lang.Object org.java.plugin.util.ResourceManager
ResourceManager | final public class ResourceManager (Code) | | Utility class to manage localization resources. This class is not for public
usage but mainly for custom implementations developers to provide them
uniform access and organization of locale specific data.
Class usage is very simple. Put your locale sensible data into
Resources.properties files and save them near classes that you
are going to get localized. For
java.util.Locale to file mapping
details see
ResourceBundle documentation.
version: $Id$ |
Method Summary | |
public static String | getMessage(String packageName, String messageKey) | public static String | getMessage(String packageName, String messageKey, Object data) Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key Parameters: data - data for parameter placeholders substitution, may beObject , array orCollection . | public static String | getMessage(String packageName, String messageKey, Locale locale) | public static String | getMessage(String packageName, String messageKey, Locale locale, Object data) Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key Parameters: locale - locale to get message for Parameters: data - data for parameter placeholders substitution, may beObject , array orCollection . |
getMessage | public static String getMessage(String packageName, String messageKey)(Code) | | Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key message for Locale.getDefault default locale |
getMessage | public static String getMessage(String packageName, String messageKey, Object data)(Code) | | Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key Parameters: data - data for parameter placeholders substitution, may beObject , array orCollection . message for Locale.getDefault default locale |
getMessage | public static String getMessage(String packageName, String messageKey, Locale locale)(Code) | | Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key Parameters: locale - locale to get message for message for given locale |
getMessage | public static String getMessage(String packageName, String messageKey, Locale locale, Object data)(Code) | | Parameters: packageName - package name, used forResources.properties file look-up Parameters: messageKey - message key Parameters: locale - locale to get message for Parameters: data - data for parameter placeholders substitution, may beObject , array orCollection . message for given locale |
|
|