How can I create a global ResourceBundle that will be recognized by all the classes in my application?

Joe Sam Shirah

Actually, ResourceBundles are effectively global within a VM. The reason is that a private static cache is searched and used to retain previously obtained bundles. Note that all variants of getBundle() are also static. While this design enhances performance after the first retrieval, there are no refresh/reload methods, leading to the "no standard way" answer to How can I reload ResourceBundles?.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact