Java Doc for Config.java in  » J2EE » Jaffa » org » jaffa » config » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Jaffa » org.jaffa.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jaffa.config.Config

Config
public class Config (Code)
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


Field Summary
final public static  StringPROP_APPLICATION_RESOURCES_DEFAULT_LOCATION
     Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.default is.
final public static  StringPROP_APPLICATION_RESOURCES_LOCATION
     Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.properties is.
final public static  StringPROP_APPLICATION_RESOURCES_OVERRIDE_LOCATION
     Dynamic, Returns java.lang.String : The physical path of where the ApplicationResources.override is.
final public static  StringPROP_COMPONENTS_FILE
    
final public static  StringPROP_DEFAULT_GRID_SETTINGS_URI
    
final public static  StringPROP_DOMAIN_FIELD_VIEWER_COMPONENT_MAPPING_FILE
     Static : The TextTag uses this properties file to determine if a hyperlink to a Viewer component should be generated for a field.
final public static  StringPROP_FINDER_MAX_RECORDS_DROP_DOWN_OPTIONS
     Static : The values to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens.
final public static  StringPROP_JDBC_ENGINE_INIT
    
final public static  StringPROP_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.
final public static  StringPROP_LOG4J_CONFIG
     Static : Log4j Configuration To Use.
final public static  StringPROP_MENULIST_URL
    
final public static  StringPROP_MESSAGE_RESOURCES_BUNDLE
     Static : The Jaffa exceptions typically contain error codes.
final public static  StringPROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_FREQUENCY_IN_MINUTES
     Static : The frequency at which the Component Garbage Collector is run.
final public static  StringPROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_TIME_OUT_IN_MINUTES
     Static : This value is used to determine when a component is idle and should be garbage collected.
final public static  StringPROP_PRESENTATION_DEFAULT_GUARDED_HTML_LOCATION
    
final public static  StringPROP_RULES_ENGINE_CORE_RULES_URL
     Static : This property holds the url for the core-rules file used by the Dynamic Rules Engine.
final public static  StringPROP_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.
final public static  StringPROP_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  StringPROP_SECURITY_POLICY_URL
    
final public static  StringPROP_SECURITY_PORTLET_INVALIDATE_SESSION_BEFORE_REDIRECTING_TO_FINAL_URL
    
final public static  StringPROP_TIER
     Static : The no.
final public static  StringPROP_USER_GRID_SETTINGS_URI
    
final public static  StringPROP_WEB_SERVER_ROOT
     Dynamic, Returns java.lang.String : The physical path of where the web route is.
final public static  StringPROP_WEB_SERVER_ROOT_FILE
     Static : This the the name of a file in the web servers route directory.


Method Summary
public static  ObjectgetProperty(String key)
     Returns the value of a property.
public static  ObjectgetProperty(String key, Object defValue)
     Get a property, can be dynamic or static.
public static  voidsetProperty(String key, Object value)
     Set Property.

Field Detail
PROP_APPLICATION_RESOURCES_DEFAULT_LOCATION
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



PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_FREQUENCY_IN_MINUTES
final public static String PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_FREQUENCY_IN_MINUTES(Code)
Static : The frequency at which the Component Garbage Collector is run.



PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_TIME_OUT_IN_MINUTES
final public static String PROP_PRESENTATION_COMPONENT_GARBAGE_COLLECTION_TIME_OUT_IN_MINUTES(Code)
Static : This value is used to determine when a component is idle and should be garbage collected.



PROP_PRESENTATION_DEFAULT_GUARDED_HTML_LOCATION
final public static String PROP_PRESENTATION_DEFAULT_GUARDED_HTML_LOCATION(Code)
Static : The default html fragment used for guarded-buttons



PROP_RULES_ENGINE_CORE_RULES_URL
final public static String PROP_RULES_ENGINE_CORE_RULES_URL(Code)
Static : This property holds the url for the core-rules file used by the Dynamic Rules Engine.



PROP_RULES_ENGINE_VALIDATORS_URL_LIST
final public static String PROP_RULES_ENGINE_VALIDATORS_URL_LIST(Code)
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
final public static String PROP_RULES_ENGINE_VARIATIONS_DIR(Code)
Static : This value is used to determine the directory in which the variations to the core-rules of the Dynamic-Rules-Engine are located.



PROP_SECURITY_POLICY_URL
final public static String PROP_SECURITY_POLICY_URL(Code)
Static : The URL location of the Role based security policy file



PROP_SECURITY_PORTLET_INVALIDATE_SESSION_BEFORE_REDIRECTING_TO_FINAL_URL
final public static String PROP_SECURITY_PORTLET_INVALIDATE_SESSION_BEFORE_REDIRECTING_TO_FINAL_URL(Code)
Static : The invalidate or not to invalidate a Session, when redirecting to the FinalUrl



PROP_TIER
final public static String PROP_TIER(Code)
Static : The no. of tiers being used



PROP_USER_GRID_SETTINGS_URI
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





Method Detail
getProperty
public static Object getProperty(String key) throws MissingResourceException(Code)
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.



getProperty
public static Object getProperty(String key, Object defValue)(Code)
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)



setProperty
public static void setProperty(String key, Object value)(Code)
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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.