Spring component scanning does something very similar to what JBoss does, it looks for classes with certain annotations. However Spring component scanning can perform quite badly when you have a lot of classes in your deployment.
I was wondering whether it would be possible to hook into Spring component scanning and make it use the JBoss class scanning infrastructure.