D:\Sam\InterviewsMaterial\SiteWorx\SiteWorxTest\src\java\utils\DatabaseKeysPropertyManager.java
 1 /*
 2  * To change this template, choose Tools | Templates
 3  * and open the template in the editor.
 4  */
 5 package utils;
 6 
 7 /**
 8  *
 9  * @author sameldin
10  */
11 import java.util.ResourceBundle;
12 
13 public class DatabaseKeysPropertyManager
14 {
15     private static ResourceBundle       localBundle;
16 
17         public static String getParameter( String parameterName )
18         {
19                 if(localBundle == null )
20                         localBundle = ResourceBundle.getBundle("resources.DatabaseKeys");
21                 return localBundle.getString( parameterName );
22         }
23 
24     /**
25      *
26     */
27     public static void main (String[] args)
28     {
29         String joe = DatabaseKeysPropertyManager.getParameter("library");
30         System.out.println("==========================");
31         System.out.println(joe);
32         System.out.println("==========================");
33     }
34 }
35