<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div><div style="margin: 0px; font-family: Menlo;"> URI uri = getURI("/test.rar");</div><div style="margin: 0px; font-family: Menlo;"> final VirtualFile virtualFile = VFS.getChild(uri);</div><div style="margin: 0px; font-family: Menlo;"> final Indexer indexer = new Indexer();</div><div style="margin: 0px; font-family: Menlo;"> final List<VirtualFile> classChildren = virtualFile.getChildren(new SuffixMatchFilter(".class",</div><div style="margin: 0px; font-family: Menlo;"> VisitorAttributes.RECURSE_LEAVES_ONLY));</div><div style="margin: 0px; font-family: Menlo;"> for (VirtualFile classFile : classChildren) {</div><div style="margin: 0px; font-family: Menlo;"> InputStream inputStream = null;</div><div style="margin: 0px; font-family: Menlo;"> try {</div><div style="margin: 0px; font-family: Menlo;"> inputStream = classFile.openStream();</div><div style="margin: 0px; font-family: Menlo;"> indexer.index(inputStream);</div><div style="margin: 0px; font-family: Menlo;"> } finally {</div><div style="margin: 0px; font-family: Menlo;"> VFSUtils.safeClose(inputStream);</div><div style="margin: 0px; font-family: Menlo;"> }</div><div style="margin: 0px; font-family: Menlo;"> }</div></div><div><br></div><br><div><div>On Sep 22, 2014, at 11:53 AM, Jason Greene <<a href="mailto:jason.greene@redhat.com">jason.greene@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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.<br><br><br>On Sep 22, 2014, at 9:29 AM, Thomas Segismont <<a href="mailto:tsegismo@redhat.com">tsegismo@redhat.com</a>> wrote:<br><br><blockquote type="cite">Hi everyone,<br><br>In RHQ I need a way to list my domain classes at runtime (when preparing <br>the CLI environment for execution, but that's another story).<br><br>In the past, for the same issue with another project, I did something <br>like looking for the persistence.xml file in the classpath and then scan <br>the JAR where it is found.<br><br>I wonder if there's something I could re-use from our EAP6.3-alpha base. <br>Any idea?<br><br>Thanks,<br>Thomas<br>_______________________________________________<br>wildfly-dev mailing list<br><a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br></blockquote><br>--<br>Jason T. Greene<br>WildFly Lead / JBoss EAP Platform Architect<br>JBoss, a division of Red Hat<br><br><br>_______________________________________________<br>wildfly-dev mailing list<br><a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br></blockquote></div><br></body></html>