# HG changeset patch # User Dirk Olmes # Date 1420257234 -3600 # Node ID 3f6c9b512b85bb3ed51ffa64d71d5dba3fc83943 # Parent 6c1752a66dd0737fa37939a8aa214e37cfe9dbd9 fix the javadoc url diff -r 6c1752a66dd0 -r 3f6c9b512b85 content/Java/localized-resource-bundle-subclasses.md --- a/content/Java/localized-resource-bundle-subclasses.md Sat Jan 03 04:49:48 2015 +0100 +++ b/content/Java/localized-resource-bundle-subclasses.md Sat Jan 03 04:53:54 2015 +0100 @@ -3,4 +3,4 @@ Tags: JDK lang: en -When working on Mule's i18n support I stubled over a hidden gem in java. The ResourceBundle's `getResourceBundle` method will build a candidate name and look for a class **with this name** in the runtime before resorting to loading properties files. I'd like to play around with this feature a bit, currently I'm thinking of using plain java classes as storage for error messages. With proper class hierarchies the need to duplicate each and every message should be gone then, as the wonder of overridden methods kicks in. See [ResourceBundle's getBundle method description](http://java.sun.com/j2se/1.4.2/docs/api/java/util/ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)) for detailed documentation. +When working on Mule's i18n support I stubled over a hidden gem in java. The ResourceBundle's `getResourceBundle` method will build a candidate name and look for a class **with this name** in the runtime before resorting to loading properties files. I'd like to play around with this feature a bit, currently I'm thinking of using plain java classes as storage for error messages. With proper class hierarchies the need to duplicate each and every message should be gone then, as the wonder of overridden methods kicks in. See [ResourceBundle's getBundle method description](https://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html#getBundle%28java.lang.String,%20java.util.Locale,%20java.lang.ClassLoader%29) for detailed documentation.