Package org.eclnt.jsfserver.resources
Interface IResourceAccess
- All Superinterfaces:
ICCConfigurationObjectWithInit
Interface to own reading of resources (i.e. properties that typically depend
on internationalization settings). By default the
The runtime instance is registered in system.xml configuration file (element "resourcemanager", attribute "resourceaccessclassname").
ResourceManager
reads its data by property files (Java ResourceBundle
) - but you may
take over the reading on your own and e.g. connect the resource management
for your literals to your database.The runtime instance is registered in system.xml configuration file (element "resourcemanager", attribute "resourceaccessclassname").
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(javax.servlet.ServletContext context) Called one time, duringResourceManager.init(ServletContext)
.readProperty
(String resourceName, String property, Locale locale, boolean withError) Actual reading of a property value.
-
Method Details
-
init
void init(javax.servlet.ServletContext context) Called one time, duringResourceManager.init(ServletContext)
.- Specified by:
init
in interfaceICCConfigurationObjectWithInit
-
readProperty
Actual reading of a property value. There is no buffering on caller side! This means: it is strongly recommended to buffer property values within your implementation for fast access!- Parameters:
withError
- true => in case the property cannot be resolved an error is thrown; false => in case the property cannot be resolved null is returned.
-