| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.config.Config
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
| Field Summary | |
| static String | PROP_APPLICATION_RESOURCES_DEFAULT_LOCATIONDynamic, Returns java.lang.String : The physical path of where the ApplicationResources.default is. | 
| static String | PROP_APPLICATION_RESOURCES_LOCATIONDynamic, Returns java.lang.String : The physical path of where the ApplicationResources.properties is. | 
| static String | PROP_APPLICATION_RESOURCES_OVERRIDE_LOCATIONDynamic, Returns java.lang.String : The physical path of where the ApplicationResources.override is. | 
| static String | PROP_COMPONENTS_FILEStatic : Location in the Web Application Tree of the Components.xml file | 
| static String | PROP_DEFAULT_GRID_SETTINGS_URIStatic : The URL location of the User based user grid settings file | 
| static String | PROP_DOMAIN_FIELD_VIEWER_COMPONENT_MAPPING_FILEStatic : The TextTag uses this properties file to determine if a hyperlink to a Viewer component should be generated for a field. | 
| static String | PROP_FINDER_MAX_RECORDS_DROP_DOWN_OPTIONSStatic : The values to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens. | 
| static String | PROP_JDBC_ENGINE_INITStatic : The configuration file to be used when the JDBCEngine provider is used | 
| static String | PROP_KEY_FIELD_PER_VIEWER_COMPONENT_FILEStatic : The TextTag uses this properties file to determine the key-field of a Viewer component for which it has generated a hyperlink. | 
| static String | PROP_LOG4J_CONFIGStatic : Log4j Configuration To Use. | 
| static String | PROP_MENULIST_URLStatic : The URL location of the Menu list file | 
| static String | PROP_MESSAGE_RESOURCES_BUNDLEStatic : The Jaffa exceptions typically contain error codes. | 
| static String | PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_FREQUENCY_IN_MINUTESStatic : The frequency at which the Component Garbage Collector is run. | 
| static String | PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_TIME_OUT_IN_MINUTESStatic : This value is used to determine when a component is idle and should be garbage collected. | 
| static String | PROP_PRESENTATION_DEFAULT_GUARDED_HTML_LOCATIONStatic : The default html fragment used for guarded-buttons | 
| static String | PROP_RULES_ENGINE_CORE_RULES_URLStatic : This property holds the url for the core-rules file used by the Dynamic Rules Engine. | 
| static String | PROP_RULES_ENGINE_VALIDATORS_URL_LISTStatic : This property holds the comma-separated list of the various validator.xml urls used by the Dynamic Rules Engine. | 
| static String | PROP_RULES_ENGINE_VARIATIONS_DIRStatic : This value is used to determine the directory in which the variations to the core-rules of the Dynamic-Rules-Engine are located. | 
| static String | PROP_SECURITY_POLICY_URLStatic : The URL location of the Role based security policy file | 
| static String | PROP_SECURITY_PORTLET_INVALIDATE_SESSION_BEFORE_REDIRECTING_TO_FINAL_URLStatic : The invalidate or not to invalidate a Session, when redirecting to the FinalUrl | 
| static String | PROP_TIERStatic : The no. of tiers being used | 
| static String | PROP_USER_GRID_SETTINGS_URIStatic : The URL location of the User based user grid settings file | 
| static String | PROP_WEB_SERVER_ROOTDynamic, Returns java.lang.String : The physical path of where the web route is. | 
| static String | PROP_WEB_SERVER_ROOT_FILEStatic : This the the name of a file in the web servers route directory. | 
| Constructor Summary | |
| Config() | |
| Method Summary | |
| static Object | getProperty(String key)Returns the value of a property. | 
| static Object | getProperty(String key,
                       Object defValue)Get a property, can be dynamic or static. | 
| static void | setProperty(String key,
                       Object value)Set Property. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final String PROP_WEB_SERVER_ROOT
public static final String PROP_APPLICATION_RESOURCES_LOCATION
public static final String PROP_APPLICATION_RESOURCES_DEFAULT_LOCATION
public static final String PROP_APPLICATION_RESOURCES_OVERRIDE_LOCATION
public static final String PROP_WEB_SERVER_ROOT_FILE
public static final String PROP_LOG4J_CONFIG
public static final String PROP_COMPONENTS_FILE
public static final String PROP_JDBC_ENGINE_INIT
public static final String PROP_TIER
public static final String PROP_PRESENTATION_DEFAULT_GUARDED_HTML_LOCATION
public static final String PROP_SECURITY_PORTLET_INVALIDATE_SESSION_BEFORE_REDIRECTING_TO_FINAL_URL
public static final String PROP_SECURITY_POLICY_URL
public static final String PROP_USER_GRID_SETTINGS_URI
public static final String PROP_DEFAULT_GRID_SETTINGS_URI
public static final String PROP_MENULIST_URL
public static final String PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_FREQUENCY_IN_MINUTES
public static final String PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_TIME_OUT_IN_MINUTES
public static final String PROP_RULES_ENGINE_CORE_RULES_URL
public static final String PROP_RULES_ENGINE_VARIATIONS_DIR
public static final String PROP_RULES_ENGINE_VALIDATORS_URL_LIST
public static final String PROP_FINDER_MAX_RECORDS_DROP_DOWN_OPTIONS
public static final String PROP_DOMAIN_FIELD_VIEWER_COMPONENT_MAPPING_FILE
public static final String PROP_KEY_FIELD_PER_VIEWER_COMPONENT_FILE
public static final String PROP_MESSAGE_RESOURCES_BUNDLE
| Constructor Detail | 
public Config()
| Method Detail | 
public static void setProperty(String key,
                               Object value)
key - the property name.value - the property value.
public static Object getProperty(String key)
                          throws MissingResourceException
key - the name of the property.
MissingResourceException - if the property is not found
public static Object getProperty(String key,
                                 Object defValue)
key - the name of the property.defValue - this value will be returned in case the property has a null value.
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||