Is it possible load all properties files contained in a package dynamically? i.e. MyClass.class.getR

Posted by Nick Stonebraker on Stack Overflow See other posts from Stack Overflow or by Nick Stonebraker
Published on 2010-06-02T18:16:36Z Indexed on 2010/06/02 18:34 UTC
Read the original article Hit count: 98

Filed under:
|
|
|
|

I am familiar with obtaining the contents of a properties file given the name of the file, and obviously MyClass.class.getResource('*.properties') will not work, but how can I obtain a list of ALL the properties files located in the same package as my class?

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee