title: Static ResourceBundle
body: <p>I am currently making resources for an app that is using ResourceBundle. The thing is, with the current code to dispatch the resources I would need to create an instance of the resource bundle every time I need it and I can guess this is not a good idea, since I would end up loading the resources again and again.</p>
  
  <p>The second solution would be to divide the bundle into many, But I would end up with bundles have only 2-3 strings and like 15 bundles.</p>
  
  <p><strong>My question is:</strong>
  Is there a way to simple load all the resources in a single static class and access them from there.</p>
  
  <p>I made this little piece of code that seems to work for me but I doubt its quality.</p>
  
  <pre><code>public class StaticBundle
  {
      private final static ResourceBundle resBundle = 
          ResourceBundle.getBundle("com.resources");
      public final static String STRING_A = resBundle.getString("KEY_A");
      public final static String STRING_B = resBundle.getString("KEY_B");
      public final static String STRING_C = resBundle.getString("KEY_C");
  }
  </code></pre>
  
  <p>With this I can call <code>StaticBundle.STRING_A</code> and get the value anywhere in the project but since the bundle is initialized at the same time as the class itself... It is highly possible that the program won't have the time to load the proper local from the preferences.</p>
  
  <p>Is there a good way to do this or any other possible solution?</p>
  
  <p>Thank you</p>