Author: cpopetz
Date: 2009-03-12 13:28:57 -0400 (Thu, 12 Mar 2009)
New Revision: 10148
Modified:
trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java
Log:
JBSEAM-4001 Wicket Instrumentation Annotation
Modified: trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java
===================================================================
--- trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java 2009-03-12
17:22:18 UTC (rev 10147)
+++ trunk/src/wicket/org/jboss/seam/wicket/ioc/JavassistInstrumentor.java 2009-03-12
17:28:57 UTC (rev 10148)
@@ -141,9 +141,9 @@
}
}
- public JavassistInstrumentor(ClassPool classPool, Set<String>
packagesToInstrument)
+ public JavassistInstrumentor(ClassPool classPool, Set<String>
packagesToInstrument, boolean scanAnnotations)
{
- this(classPool);
+ this(classPool,scanAnnotations);
this.packagesToInstrument = packagesToInstrument;
}
@@ -441,6 +441,8 @@
{
Set<String> packagesToInstrument = new HashSet<String>();
String list =
System.getProperty("org.jboss.seam.wicket.instrumented-packages");
+ String scanAnnotationsProperty =
System.getProperty("org.jboss.seam.wicket.scanAnnotations");
+ boolean scanAnnotations = scanAnnotationsProperty == null ? false :
scanAnnotationsProperty.equals("true");
if (list == null)
return;
for (String packageName : list.split(","))
@@ -450,6 +452,6 @@
ClassPool classPool = new ClassPool();
classPool.appendSystemPath();
- instrumentation.addTransformer(new JavassistInstrumentor(classPool,
packagesToInstrument));
+ instrumentation.addTransformer(new JavassistInstrumentor(classPool,
packagesToInstrument, scanAnnotations));
}
}
Show replies by date