Scanning Classes for Annotations
Current JEE specifications reduce the number of configuration files, but the container is now required to do most of the work using @annotations. In order to get @annotation info, containers must scan classes. This scanning creates a performance penalty. But to reduce the amount of scanning, the Microcontainer provides another descriptor hook, by means of jboss-scanning.xml. Example 10.6. jboss-scanning.xml This example shows a simple description of relative paths to include or exclude when scanning for Java Enterprise Edition version 5 and greater annotated metadata information.