| java.lang.Object org.blojsom.util.resources.ResourceBundleResourceManager
ResourceBundleResourceManager | public class ResourceBundleResourceManager implements ResourceManager(Code) | | ResourceBundleResourceManager
author: David Czarnecki version: $Id: ResourceBundleResourceManager.java,v 1.3 2007/01/17 02:35:19 czarneckid Exp $ since: blojsom 3.0 |
Method Summary | |
public String | format(String pattern, Object[] arguments) | public String | getString(String resourceID, String resource, String fallback) Retrieve a string from a given resource bundle for the default locale. | public String | getString(String resourceID, String resource, String fallback, String language) Retrieve a string from a given resource bundle for the particular language and country locale. | public String | getString(String resourceID, String resource, String fallback, String language, String country) Retrieve a string from a given resource bundle for the particular language and country locale. | public String | getString(String resourceID, String resource, String fallback, Locale locale) Retrieve a string from a given resource bundle for the particular language and country locale. | public void | init() Initialize the resource bundle manager. | public void | setResourceBundlesToLoad(String[] resourceBundles) |
ResourceBundleResourceManager | public ResourceBundleResourceManager()(Code) | | Default constructor;
|
getString | public String getString(String resourceID, String resource, String fallback)(Code) | | Retrieve a string from a given resource bundle for the default locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, String language)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: language - Language code resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, String language, String country)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: language - Language code Parameters: country - Country code resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, Locale locale)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: locale - Locale object to use when retrieving the resource bundle resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
init | public void init() throws org.blojsom.BlojsomException(Code) | | Initialize the resource bundle manager.
Resource bundles to pre-load are specified in a comma-separated list under the key
blojsom-resource-manager-bundles .
|
setResourceBundlesToLoad | public void setResourceBundlesToLoad(String[] resourceBundles)(Code) | | Set the list of resource bundles to load
Parameters: resourceBundles - List of resource bundles |
|
|