Page 1 of 1
ResourceBundle.Control
Posted: Thu Jun 06, 2013 4:07 am
by The_Nick
Hi,
I have read this java tutorial
http://docs.oracle.com/javase/tutorial/ ... ntrol.html. However, I can't quite grasp the concept of the use of this class.
Could you provide another
pratical (not code just the concept) of a typical use?
Thanks in advance.
Re: ResourceBundle.Control
Posted: Thu Jun 06, 2013 6:10 am
by admin
Yes, one practical usage that I can see is when you want to make changes to your resource bundle file while the application is running. Using this class you can control the time to live and so it will be reloaded as frequently as you need.
This is NOT required for the exam though.
HTH,
Paul.
Re: ResourceBundle.Control
Posted: Thu Jun 06, 2013 6:58 am
by The_Nick
Actually in the official link it's present:
http://docs.oracle.com/javase/tutorial/ ... calization
Item 3: Load a resource bundle in an application.
Customizing Resource Bundle Loading
However, thanks for the clarification. As far as I understood it's something to reduce the visibilty of the ResourceBundle loader? Meaning that it's possible with Control to set some filters just to use some of those standardly available?
Thanks in advance.
The_Nick.
Re: ResourceBundle.Control
Posted: Fri Aug 16, 2013 8:20 am
by ewebxml
I posted my question in the wrong area.