You can do a similar technique. Load a file in your deployment via getResource on a
clasloader. Then you will get a VFS uri. If you convert it to a URL and call openContent
on it you will get a VFS VirtualFile, and then using that you can browse anything int he
deployment.
On Sep 22, 2014, at 9:29 AM, Thomas Segismont <tsegismo(a)redhat.com> wrote:
Hi everyone,
In RHQ I need a way to list my domain classes at runtime (when preparing
the CLI environment for execution, but that's another story).
In the past, for the same issue with another project, I did something
like looking for the persistence.xml file in the classpath and then scan
the JAR where it is found.
I wonder if there's something I could re-use from our EAP6.3-alpha base.
Any idea?
Thanks,
Thomas
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev
--
Jason T. Greene
WildFly Lead / JBoss EAP Platform Architect
JBoss, a division of Red Hat