This class manages all the access to the frameworks configuration data
In addition it is used for all text string translation.
This configuration object manages both static (read from a resource) and dynamic
(set by initilization params).
Each configuration paramerter will have a static name associated with it. Only
the parameters flagged as dynamic will be accepted by the setProperty() method.
By default the getters will return Ojects, but any property read from the resource
will be returned as string. The dynapic properties will return the same object that
was passed into it.
NOTE: This has been modified to use the resource bundle libraries from Jakarta/Struts
NOTE: Changed Back to use normal resource bundles as Struts doesnt seem to work under J2EE
author: PaulE version: 1.0
PROP_KEY_FIELD_PER_VIEWER_COMPONENT_FILE Static : The TextTag uses this properties file to determine the key-field of a Viewer component for which it has generated a hyperlink.
PROP_RULES_ENGINE_VALIDATORS_URL_LIST Static : This property holds the comma-separated list of the various validator.xml urls used by the Dynamic Rules Engine.
PROP_RULES_ENGINE_VARIATIONS_DIR Static : This value is used to determine the directory in which the variations to the core-rules of the Dynamic-Rules-Engine are located.
final public static String PROP_APPLICATION_RESOURCES_DEFAULT_LOCATION(Code)
Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.default is. Set in the initialization servlet. Example "C:\tomcat\webapps\Tools\WEB-INF\classes\ApplicationResources.default"
PROP_APPLICATION_RESOURCES_LOCATION
final public static String PROP_APPLICATION_RESOURCES_LOCATION(Code)
Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.properties is. Set in the initialization servlet. Example "C:\tomcat\webapps\Tools\WEB-INF\classes\ApplicationResources.properties"
PROP_APPLICATION_RESOURCES_OVERRIDE_LOCATION
final public static String PROP_APPLICATION_RESOURCES_OVERRIDE_LOCATION(Code)
Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.override is. Set in the initialization servlet. Example "C:\ApplicationResources.override"
PROP_COMPONENTS_FILE
final public static String PROP_COMPONENTS_FILE(Code)
Static : Location in the Web Application Tree of the Components.xml file
PROP_DEFAULT_GRID_SETTINGS_URI
final public static String PROP_DEFAULT_GRID_SETTINGS_URI(Code)
Static : The URL location of the User based user grid settings file
PROP_DOMAIN_FIELD_VIEWER_COMPONENT_MAPPING_FILE
final public static String PROP_DOMAIN_FIELD_VIEWER_COMPONENT_MAPPING_FILE(Code)
Static : The TextTag uses this properties file to determine if a hyperlink to a Viewer component should be generated for a field.
PROP_FINDER_MAX_RECORDS_DROP_DOWN_OPTIONS
final public static String PROP_FINDER_MAX_RECORDS_DROP_DOWN_OPTIONS(Code)
Static : The values to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens.
PROP_JDBC_ENGINE_INIT
final public static String PROP_JDBC_ENGINE_INIT(Code)
Static : The configuration file to be used when the JDBCEngine provider is used
PROP_KEY_FIELD_PER_VIEWER_COMPONENT_FILE
final public static String PROP_KEY_FIELD_PER_VIEWER_COMPONENT_FILE(Code)
Static : The TextTag uses this properties file to determine the key-field of a Viewer component for which it has generated a hyperlink.
PROP_LOG4J_CONFIG
final public static String PROP_LOG4J_CONFIG(Code)
Static : Log4j Configuration To Use. 'none', 'default' or specified xml config file
PROP_MENULIST_URL
final public static String PROP_MENULIST_URL(Code)
Static : The URL location of the Menu list file
PROP_MESSAGE_RESOURCES_BUNDLE
final public static String PROP_MESSAGE_RESOURCES_BUNDLE(Code)
Static : The Jaffa exceptions typically contain error codes. Invoking the getLocalizedMessage() on a Jaffa exception will return an appropriate message by looking up the error-code in the specified ResourceBundle. No error is raised in case an invalid ResourceBundle is specified, or if no entry exists for the error-code. The ResourceBundle should refer to a properties file in the classpath. Eg. org/jaffa/resources/ApplicationResources
final public static String PROP_USER_GRID_SETTINGS_URI(Code)
Static : The URL location of the User based user grid settings file
PROP_WEB_SERVER_ROOT
final public static String PROP_WEB_SERVER_ROOT(Code)
Dynamic, Returns java.lang.String : The physical path of where the web route is. Set in the initialization servlet. Example "C:\tomcat\webapps\Tools"
PROP_WEB_SERVER_ROOT_FILE
final public static String PROP_WEB_SERVER_ROOT_FILE(Code)
Static : This the the name of a file in the web servers route directory. It is used to get the WEB_SERVER_ROOT. '/index.html' is often a good value to use
Returns the value of a property.
Parameters: key - the name of the property. throws: MissingResourceException - if the property is not found the value of a property.
Get a property, can be dynamic or static. Allows for a default value to be returned if the property is not found,
or if the property has an empty/null value.
Parameters: key - the name of the property. Parameters: defValue - this value will be returned in case the property has a null value. Either a string (for a static property) or the appropriate object (for a dynamic one)
Set Property. This is only valid on properties classifed as 'dynamic'
If an invalid property is set, an logging error is raised, and the
set opertaion is ignored.
Each time a new dynamic property is added, this method must be updated to
accept it.
Parameters: key - the property name. Parameters: value - the property value.