What is the best way to decide whether to use ListResourceBundle or PropertyResource Bundle?
Location: http://www.jguru.com/faq/view.jsp?EID=348426 Created: Mar 10, 2001 Modified: 2001-03-12 14:14:38.612 Author: swarraj kulkarni (http://www.jguru.com/guru/viewbio.jsp?EID=121306) Question originally posed by James Sobeck (http://www.jguru.com/guru/viewbio.jsp?EID=330269 The “best” choice depends on the application’s requirements. Since the ListResourceBundle is based on a java class, for every modification a recompile is required which can be cumbersome. But a ListResourceBundle has no limitation on the type of information it can hold. It can have objects as part of the information, such as Array of Strings or integers. Further, for system infrastructure messages, where deployment time change is not necessary, we can prefer ListResourceBundle. A PropertyResourceBundle is backed up by a .properties file where the key=value format of information is loaded at runtime into the system. In a deployment where the environment related parameters need to be flexible, this type helps beca