Interface IResourceAccess

All Superinterfaces:
ICCConfigurationObjectWithInit

public interface IResourceAccess extends ICCConfigurationObjectWithInit
Interface to own reading of resources (i.e. properties that typically depend on internationalization settings). By default the 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 Details

    • init

      void init(javax.servlet.ServletContext context)
      Called one time, during ResourceManager.init(ServletContext).
      Specified by:
      init in interface ICCConfigurationObjectWithInit
    • readProperty

      String readProperty(String resourceName, String property, Locale locale, boolean withError)
      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.