D:\Sam\InterviewsMaterial\SiteWorx\SiteWorxTest\src\java\utils\DB_QueriesPropertyManager.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 DB_QueriesPropertyManager 
14 {
15 private static ResourceBundle   localBundle;
16 
17         public static String getParameter( String parameterName )
18         {
19                 if(localBundle == null )
20                         localBundle = ResourceBundle.getBundle("resources.DB_Queries");
21                 return localBundle.getString( parameterName );
22         }
23 
24     /**
25      *
26     */
27     public static void main (String[] args)
28     {
29         String joe = DB_QueriesPropertyManager.getParameter("??");
30         System.out.println("==========================");
31         System.out.println(joe);
32         System.out.println("==========================");
33     }
34 
35 }
36