Java Doc for ConfigSettings.java in  » Content-Management-System » harmonise » org » openharmonise » rm » 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 » Content Management System » harmonise » org.openharmonise.rm.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.rm.config.ConfigSettings

ConfigSettings
public class ConfigSettings (Code)
Singleton class to provide interface to Harmonise configuration settings.
author:
   Matt Treanor
author:
   Michael Bell
version:
   $Revision: 1.2 $




Method Summary
final public static  booleangetBoolProperty(String property_name, String default_value)
     Returns the boolean value which corresponds to the property name.
public static synchronized  ConfigSettingsgetInstance()
     Returns the singleton instance of this class.
final public static  intgetIntProperty(String property_name, String default_value)
     Returns the int value which corresponds to the property name.
final public static  ListgetMultiValuedProperty(String property_name)
     Returns a list of values for the specified property.
final public static  StringgetProperty(String property_name)
     Returns the String value which corresponds to the property name.
final public static  StringgetProperty(String property_name, String default_value)
     Returns the String value which corresponds to the property name.
public static  ListgetPropertyNameArray()
     Returns a comma serparated list of the property names.
public static  StringgetPropertyNames()
     Returns a comma serparated list of the property names.
public static  voidinsertProperty(String property_name, String property_value)
     Adds a new property and property value.
public static  voidremoveProperty(String prop_name)
     Removes the specified configuration property.
public static  voidsetProperty(String property_name, String property_value)
     Sets a new value for the specified configuration property.



Method Detail
getBoolProperty
final public static boolean getBoolProperty(String property_name, String default_value) throws ConfigException(Code)
Returns the boolean value which corresponds to the property name. If no property exists the default value is returned.
Parameters:
  property_name - the property name
Parameters:
  default_value - the default value the boolean value of the property
throws:
  ConfigException - if an error occurs accessing the property value



getInstance
public static synchronized ConfigSettings getInstance() throws ConfigException(Code)
Returns the singleton instance of this class. the singleton instance of this class
throws:
  ConfigException - if an error occurs constructing the singleton instance



getIntProperty
final public static int getIntProperty(String property_name, String default_value) throws ConfigException(Code)
Returns the int value which corresponds to the property name. If no property exists, the default value is returned.
Parameters:
  property_name - the property name
Parameters:
  default_value - the default value the int value of the property
throws:
  ConfigException - if an error occurs accessing the property value



getMultiValuedProperty
final public static List getMultiValuedProperty(String property_name) throws ConfigException(Code)
Returns a list of values for the specified property.
Parameters:
  property_name - the property name a list of values for the specified property
throws:
  ConfigException - if there is a problem accessing the property value



getProperty
final public static String getProperty(String property_name) throws ConfigException(Code)
Returns the String value which corresponds to the property name. If no property exists a null is returned.
Parameters:
  property_name - the property the String value which corresponds to the property name
throws:
  ConfigException - if an error occurs accessing the property value



getProperty
final public static String getProperty(String property_name, String default_value) throws ConfigException(Code)
Returns the String value which corresponds to the property name. If no property exists the default value is returned.
Parameters:
  property_name - the property name
Parameters:
  default_value - the default value the String value which corresponds to the property name
throws:
  ConfigException - if an error occurs accessing the property value



getPropertyNameArray
public static List getPropertyNameArray() throws ConfigException(Code)
Returns a comma serparated list of the property names. a comma serparated list of the property names
throws:
  ConfigException - if an error occurs initialising this class



getPropertyNames
public static String getPropertyNames() throws ConfigException(Code)
Returns a comma serparated list of the property names. a comma serparated list of the property names
throws:
  ConfigException - if an error occurs initialising this class



insertProperty
public static void insertProperty(String property_name, String property_value) throws ConfigException(Code)
Adds a new property and property value.
Parameters:
  property_name - the property name
Parameters:
  property_value - the property value
throws:
  ConfigException - if any errors occur, either due tothere already being a property of the specified name or a probleminserting the data in to the database



removeProperty
public static void removeProperty(String prop_name) throws ConfigException(Code)
Removes the specified configuration property.
Parameters:
  prop_name - the property name
throws:
  ConfigException - if there is an error updating the database



setProperty
public static void setProperty(String property_name, String property_value) throws ConfigException(Code)
Sets a new value for the specified configuration property.
Parameters:
  property_name - the property name
Parameters:
  property_value - the property value
throws:
  ConfigException - if the specified property does not existor there is a problem updating the database



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.