Currently, the IndexView only contains classes of the top-level ClassContainer, e.g. WEB-INF/classes for a WAR. Also we don't load/reuse attached indexes.
Ideas for improvements:
- reuse attached indexes (located in META-INF/jandex.idx)
make it possible/configurable to build indexes during wildfly-swarm-plugin executionaddressed in SWARM-1382
- DeploymentProducer.index() could return a composite annotation index (incl. dependencies, e.g. WEB-INF/lib)
Also note that WildFly by default creates/loads Jandex index for each deployment (incl. all dependencies). So in theory WildFly could reuse indexes built by Swarm.