[jboss-cvs] JBossAS SVN: r103313 - projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 31 08:03:17 EDT 2010


Author: alesj
Date: 2010-03-31 08:03:17 -0400 (Wed, 31 Mar 2010)
New Revision: 103313

Added:
   projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/VFSDeploymentUnitScanner.java
Modified:
   projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/ScanningDeployer.java
Log:
Add vfs aware scanner.

Modified: projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/ScanningDeployer.java
===================================================================
--- projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/ScanningDeployer.java	2010-03-31 11:59:33 UTC (rev 103312)
+++ projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/ScanningDeployer.java	2010-03-31 12:03:17 UTC (rev 103313)
@@ -31,11 +31,9 @@
 import org.jboss.deployers.spi.deployer.DeploymentStages;
 import org.jboss.deployers.spi.deployer.helpers.AbstractDeployer;
 import org.jboss.deployers.structure.spi.DeploymentUnit;
-import org.jboss.deployers.vfs.plugins.util.ClasspathUtils;
 import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
 import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnitFilter;
 import org.jboss.scanning.plugins.DeploymentScanningPluginFactory;
-import org.jboss.scanning.plugins.DeploymentUnitScanner;
 import org.jboss.scanning.spi.ScanningPlugin;
 import org.jboss.scanning.spi.helpers.AbstractScanner;
 
@@ -81,7 +79,7 @@
       {
          try
          {
-            AbstractScanner scanner = new DeploymentUnitScanner(unit, ClasspathUtils.getUrls(vdu));
+            AbstractScanner scanner = new VFSDeploymentUnitScanner(vdu);
             scanner.setPlugins(plugins);
             scanner.scan();
 

Copied: projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/VFSDeploymentUnitScanner.java (from rev 103312, projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/ScanningDeployer.java)
===================================================================
--- projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/VFSDeploymentUnitScanner.java	                        (rev 0)
+++ projects/scanning/trunk/deployers/src/main/java/org/jboss/scanning/deployers/VFSDeploymentUnitScanner.java	2010-03-31 12:03:17 UTC (rev 103313)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.scanning.deployers;
+
+import org.jboss.deployers.vfs.plugins.util.ClasspathUtils;
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
+import org.jboss.scanning.plugins.DeploymentUnitScanner;
+
+/**
+ * Scanning deployer.
+ *
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class VFSDeploymentUnitScanner extends DeploymentUnitScanner
+{
+   public VFSDeploymentUnitScanner(VFSDeploymentUnit unit) throws Exception
+   {
+      super(unit, ClasspathUtils.getUrls(unit));
+   }
+}
\ No newline at end of file




More information about the jboss-cvs-commits mailing list