Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class ApplicationResourcesAccessor extends Object implements Serializable
ResourceBundle. It is designed to be compatible with the
use of JSTL classes and taglibs.| Modifier and Type | Method and Description |
|---|---|
String |
getBaseName()
Gets the baseName being accessed by this accessor.
|
static ApplicationResourcesAccessor |
getInstance(String baseName) |
String |
getMessage(Locale locale,
String key)
Gets the message.
|
String |
getMessage(Locale locale,
String key,
Object... args)
Gets the message.
|
String |
getMessage(String key)
Gets the message.
|
String |
getMessage(String key,
Object... args)
Gets the message.
|
ResourceBundle |
getResourceBundle(Locale locale)
Gets the bundle for the provided locale.
|
public static ApplicationResourcesAccessor getInstance(String baseName)
public String getBaseName()
public ResourceBundle getResourceBundle(Locale locale)
public String getMessage(String key)
Gets the message. If missing, will generate a struts-like value including the locale and key.
Gets the message in the current thread's locale.
ThreadLocalepublic String getMessage(Locale locale, String key)
Gets the message. If missing, will generate a struts-like value including the locale and key.
public String getMessage(String key, Object... args)
Gets the message. If missing, will generate a struts-like value including the locale and key.
Substitutes arguments in the text where it finds {0}, {1}, {2}, ...
Gets the message in the current thread's locale.
ThreadLocale,
#getMessage(String,Locale,String)Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.