Fix 2 TODO items:
[jvcard.git] / src / be / nikiroo / jvcard / resources / Bundles.java
index ef6e0d750ec2e9b80f518d3f756eab04787e114c..04b6f707d1dcaeb1935d036d7fcd2f3cf5ff6597 100644 (file)
@@ -17,6 +17,10 @@ import java.util.ResourceBundle;
  *
  */
 public class Bundles {
+       /**
+        * The configuration directory where we try to get the <tt>.properties</tt>
+        * in priority, or NULL to get the information from the compiled resources.
+        */
        static private String confDir = getConfDir();
 
        /**
@@ -69,6 +73,16 @@ public class Bundles {
                Bundles.confDir = confDir;
        }
 
+       /**
+        * Get the primary configuration directory to look for <tt>.properties</tt>
+        * files in.
+        * 
+        * @return the directory
+        */
+       static public String getDirectory() {
+               return Bundles.confDir;
+       }
+
        /**
         * This class encapsulate a {@link ResourceBundle} in UTF-8. It only allows
         * to retrieve values associated to an enumeration, and allows some