I would like to load all all .properties files starting at a certain package level. All in that package and any child packages should be loaded. So for example if I specified my.foo as the starting package, my.foo.MyProperties.properties and my.foo.bar.MyOtherProperties.properties should be picked up. I would prefer (and will accept) a solution that uses the classpath and went into all available .jars, but I will upvote a file based solution as well.
Share
Use reflections. The code should be something like,
Look at the test code for more examples.