[seam-commits] Seam SVN: r10149 - maven-plugins/trunk/seam-instrument-wicket/src/main/java/org/jboss/seam/wicket.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Mar 12 13:37:05 EDT 2009


Author: cpopetz
Date: 2009-03-12 13:37:04 -0400 (Thu, 12 Mar 2009)
New Revision: 10149

Modified:
   maven-plugins/trunk/seam-instrument-wicket/src/main/java/org/jboss/seam/wicket/InstrumentationMojo.java
Log:
JBSEAM-4001 Wicket Instrumentation Annotation

Modified: maven-plugins/trunk/seam-instrument-wicket/src/main/java/org/jboss/seam/wicket/InstrumentationMojo.java
===================================================================
--- maven-plugins/trunk/seam-instrument-wicket/src/main/java/org/jboss/seam/wicket/InstrumentationMojo.java	2009-03-12 17:28:57 UTC (rev 10148)
+++ maven-plugins/trunk/seam-instrument-wicket/src/main/java/org/jboss/seam/wicket/InstrumentationMojo.java	2009-03-12 17:37:04 UTC (rev 10149)
@@ -69,6 +69,23 @@
    }
 
    /**
+    * Whether to only instrument classes annotated with @SeamWicketComponent
+    * @parameter alias="scanAnnotations"
+    */
+   private boolean scanAnnotations = false;
+   
+   public boolean isScanAnnotations()
+   {
+      return scanAnnotations;
+   }
+
+   public void setScanAnnotations(boolean scanAnnotations)
+   {
+      this.scanAnnotations = scanAnnotations;
+   }
+
+
+   /**
     * @parameter default-value="${project.runtimeClasspathElements}"
     * @readonly
     */
@@ -121,7 +138,7 @@
 
          Map<String, CtClass> instrumentedClasses = new HashMap<String, CtClass>();
 
-         JavassistInstrumentor instrumentor = new JavassistInstrumentor(classPool);
+         JavassistInstrumentor instrumentor = new JavassistInstrumentor(classPool, scanAnnotations);
 
          List<String> classes = new ArrayList<String>();
          visitDir(classesDirectory, classes);




More information about the seam-commits mailing list