ResourceBundle.Control

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

ResourceBundle.Control

Post 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.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: ResourceBundle.Control

Post 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.

The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

Re: ResourceBundle.Control

Post 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.

ewebxml
Posts: 77
Joined: Sun Jun 30, 2013 10:04 pm
Contact:

Re: ResourceBundle.Control

Post by ewebxml »

I posted my question in the wrong area.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests