I know we can do something like this:
Class.class.getResourceAsStream(\"/com/youcompany/yourapp/module/someresource.conf\")
to read the fil
I usually use
getClass().getClassLoader().getResourceAsStream(...)
but I doubt you can list the entries from the classpath, without knowing them a priori.