Merge branch 'subtree'
[fanfix.git] / resources / Bundles.java
... / ...
CommitLineData
1package be.nikiroo.utils.resources;
2
3import java.util.ResourceBundle;
4
5/**
6 * This class help you get UTF-8 bundles for this application.
7 *
8 * @author niki
9 */
10public class Bundles {
11 /**
12 * The configuration directory where we try to get the <tt>.properties</tt>
13 * in priority, or NULL to get the information from the compiled resources.
14 */
15 static private String confDir = null;
16
17 /**
18 * Set the primary configuration directory to look for <tt>.properties</tt>
19 * files in.
20 *
21 * All {@link ResourceBundle}s returned by this class after that point will
22 * respect this new directory.
23 *
24 * @param confDir
25 * the new directory
26 */
27 static public void setDirectory(String confDir) {
28 Bundles.confDir = confDir;
29 }
30
31 /**
32 * Get the primary configuration directory to look for <tt>.properties</tt>
33 * files in.
34 *
35 * @return the directory
36 */
37 static public String getDirectory() {
38 return Bundles.confDir;
39 }
40}