public class CustomResourceLoader
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
PREFIX  | 
static java.lang.String | 
SUFFIX  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<java.util.Locale> | 
getAvailablelocales()  | 
protected java.util.ResourceBundle | 
getFileSystemResource(java.lang.String path,
                     java.lang.String basename,
                     java.util.Locale locale)
This method is intended to load resource bundle from the file system by specified messages
 properties file path and for specified locale 
 | 
static CustomResourceLoader | 
getInstance(javax.servlet.http.HttpServletRequest httpRequest)
Returns singleton instance of custom resource loader 
 | 
java.util.Map<java.util.Locale,java.util.ResourceBundle> | 
getResource()  | 
java.util.ResourceBundle | 
getResourceBundle(java.util.Locale locale)  | 
public static final java.lang.String PREFIX
public static final java.lang.String SUFFIX
public static CustomResourceLoader getInstance(javax.servlet.http.HttpServletRequest httpRequest)
basedir - (optional) the absolute path to directory, that contains resources to
            be loaded. If this isn't specified then ${CONTEXT-ROOT}/WEB-INF/ will
            be usedCustomResourceLoaderprotected java.util.ResourceBundle getFileSystemResource(java.lang.String path,
                                                         java.lang.String basename,
                                                         java.util.Locale locale)
path - location of the resource on the file systembasename - the name prefix for resource filelocale - the location parametererrorMsg propertypublic java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
locale - the locale for which will be retrieved resource bundlepublic java.util.Map<java.util.Locale,java.util.ResourceBundle> getResource()
public java.util.Set<java.util.Locale> getAvailablelocales()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.