Class ResourceBundleControl

java.lang.Object
java.util.ResourceBundle.Control
nz.org.riskscape.engine.i18n.ResourceBundleControl

public class ResourceBundleControl extends ResourceBundle.Control

Extends Java's default ResourceBundle.Control to: * Assumes properties files are encoded in utf-8 instead of latin-1 * Support loading the same named file from different locations to take the super-set of values from all, but with last-one-wins behavior, where last-one is the last resource identified by the classloader as having that name * Disables fall-back locale behavior so that this can be handled in the message source