D:\CurrentProjects\XML_ParserProject\src\java\util\PropertyManager.java |
1
2
3
4
5
6 package util;
7
8 import java.util.Properties;
9 import java.util.ResourceBundle;
10 import constants.Constants;
11
12
13
14 @author
15
16 public class PropertyManager
17 {
18 private static ResourceBundle resourceBundleHandle;
19
20 public static String getParameter( String parameterName )
21 {
22 if(resourceBundleHandle == null )
23
24 resourceBundleHandle = ResourceBundle.getBundle( "ClassNamesList.properties");
25
26
27 return resourceBundleHandle.getString( parameterName );
28 }
29
30
31
32 public static void main (String[] args)
33 {
34 System.out.println( "sam = " + PropertyManager.getParameter("sam"));
35 int joe = 01;
36 }
37
38 }
39
40