I know we can do something like this:
Class.class.getResourceAsStream(\"/com/youcompany/yourapp/module/someresource.conf\")
to read the fil
I've been looking for a way to list the contents of a jar file using the classloaders, but unfortunately this seems to be impossible. Instead what you can do is open the jar as a zip file and get the contents this way. You can use standard (here) ways to read the contents of a jar file and then use the classloader to read the contents.