public interface EntityPropertiesService
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale() |
String |
getProperty(String prefix,
String key)
Get a property for an entity if one is available,
uses the default Locale
|
String |
getProperty(String prefix,
String key,
Locale locale)
Get a property for an entity if one is available
|
String |
getProperty(String prefix,
String key,
Locale locale,
String defaultValue)
Get a property for an entity if one is available
|
void |
loadProperties(String prefix,
String baseName,
ClassLoader classLoader)
Register the properties in this
ClassLoader for this entity prefix |
boolean |
unloadProperties(String prefix)
Unregister the properties stored for this prefix
|
void loadProperties(String prefix, String baseName, ClassLoader classLoader)
ClassLoader for this entity prefixprefix - an entity prefixbaseName - (optional) the part before the .properties or _en.properties,
example: location/dir/myentity.properties, if null then prefix is usedclassLoader - (optional) the ClassLoader to find the properties files in,
if null then the default thread ClassLoader is usedboolean unloadProperties(String prefix)
prefix - an entity prefixString getProperty(String prefix, String key)
prefix - an entity prefixkey - the property keyString getProperty(String prefix, String key, Locale locale)
prefix - an entity prefixkey - the property keylocale - the Locale to get the message forString getProperty(String prefix, String key, Locale locale, String defaultValue)
prefix - an entity prefixkey - the property keylocale - the Locale to get the message fordefaultValue - the default value to return if the value is nullCopyright © 2007–2019 Sakai Project. All rights reserved.