public class CustomResourceLoader extends Object
Modifier and Type | Method and Description |
---|---|
Set<Locale> |
getAvailablelocales() |
static CustomResourceLoader |
getInstance(javax.servlet.http.HttpServletRequest httpRequest)
Returns singleton instance of custom resource loader
|
Map<Locale,ResourceBundle> |
getResource() |
ResourceBundle |
getResourceBundle(Locale locale) |
public static final String PREFIX
public static CustomResourceLoader getInstance(javax.servlet.http.HttpServletRequest httpRequest)
httpRequest
- (optional) the absolute path to directory, that contains resources to
be loaded. If this isn't specified then ${CONTEXT-ROOT}/WEB-INF/
will
be usedCustomResourceLoader
public ResourceBundle getResourceBundle(Locale locale)
locale
- the locale for which will be retrieved resource bundlepublic Map<Locale,ResourceBundle> getResource()
Copyright © 2024 OpenMRS Inc.. All rights reserved.