D:\CurrentProjects\XML_ParserProject\src\java\util\PropertyManager.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 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 sameldin
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 //              resourceBundleHandle = ResourceBundle.getBundle( Constants.XML_CLASS_NAMES_PROPERTIES);
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