[jboss-cvs] JBossAS SVN: r105262 - projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 26 11:48:21 EDT 2010


Author: alesj
Date: 2010-05-26 11:48:20 -0400 (Wed, 26 May 2010)
New Revision: 105262

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/AnnotationRepositoryDeployer.java
Log:
Allow for scanner configuration.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/AnnotationRepositoryDeployer.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/AnnotationRepositoryDeployer.java	2010-05-26 15:44:09 UTC (rev 105261)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/annotations/AnnotationRepositoryDeployer.java	2010-05-26 15:48:20 UTC (rev 105262)
@@ -34,7 +34,6 @@
 import org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin;
 import org.jboss.scanning.annotations.spi.AnnotationRepository;
 import org.jboss.scanning.plugins.DeploymentUnitScanner;
-import org.jboss.scanning.spi.helpers.AbstractScanner;
 
 /**
  * A POST_CLASSLOADER deployer which creates AnnotationRepository for sub-deployments.
@@ -79,9 +78,11 @@
       try
       {
          URL[] urls = ClasspathUtils.getUrls(unit);
-         AbstractScanner scanner = new DeploymentUnitScanner(unit, urls);
+         DeploymentUnitScanner scanner = new DeploymentUnitScanner(unit, urls);
          AnnotationsScanningPlugin plugin = createPlugin(unit);
 
+         configureScanner(scanner);
+
          scanner.scan();
 
          AnnotationRepository repository = unit.getAttachment(plugin.getAttachmentKey(), AnnotationRepository.class);




More information about the jboss-cvs-commits mailing list