|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityPropertiesService
This provides the entity system with a way to access properties (and then exposes this to others via the developer helper service)
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
Locale getLocale()
Locale for the current session or user
void loadProperties(String prefix,
String baseName,
ClassLoader classLoader)
ClassLoader for this entity prefix
prefix - 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 prefix
String getProperty(String prefix,
String key)
prefix - an entity prefixkey - the property key
String getProperty(String prefix,
String key,
Locale locale)
prefix - an entity prefixkey - the property keylocale - the Locale to get the message for
String 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||