Runtime ResourceBundle Loading
I remember a while back that in the documentation, it mentioned a way to create runtime resource bundles in Spring AS. I'd really like to be able to do this but I can't seem to find anything in the current documentation about it. I'd basically like to load property files at runtime into the resource bundle like so: "resources.en-US.properties".
I'm aware of the localization aware stage processor, but I really want to do this using resource bundles. Does anyone know how I would go about it or where I'd find it in the documentation?
standard Flex functionality
what you want to do doesn't necessarily need Spring AS, you can very easily do this by loading your property file, reading it line by line and extracting the name/value pairs and then construct a run-time resourcebundle like this:
P.S. Maybe this functionality could be implemented in Spring Actionscript as a standard resource loader. I'll see what I can do.
var rb:ResourceBundle = new ResourceBundle();
rb.locale = "us_US";
rb.content["mykey"] = "myvalue";
finally you can add this bundle to the ResourceManager instance like this:
P.S. Maybe this functionality can be added to Spring AS as a standard Resource loader, I'll see what I can do.