felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guilla...@apache.org
Subject svn commit: r1487809 - /felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java
Date Thu, 30 May 2013 10:41:07 GMT
Author: guillaume
Date: Thu May 30 10:41:07 2013
New Revision: 1487809

URL: http://svn.apache.org/r1487809
Log:
FELIX-4091 Bnd iPOJO Plugin only browse classes annotated with some iPOJO annotations

* Simply search for all annotated classes

Modified:
    felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java

Modified: felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java?rev=1487809&r1=1487808&r2=1487809&view=diff
==============================================================================
--- felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java
(original)
+++ felix/trunk/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java
Thu May 30 10:41:07 2013
@@ -83,13 +83,9 @@ public class BndJarResourceStore impleme
     public void accept(ResourceVisitor visitor) {
 
         try {
-            // TODO make this configurable (react to other annotations)
-            // Only visit classes annotated with @Component or @Handler
-            String annotations = Component.class.getPackage().getName() + ".*";
-
+            // Collect all annotated classes
             Collection<Clazz> classes = m_analyzer.getClasses("",
-                    Clazz.QUERY.ANNOTATION.name(), annotations,
-                    Clazz.QUERY.NAMED.name(), "*");
+                    Clazz.QUERY.CLASSANNOTATIONS.name());
 
             classes = filter(classes);
 



Mime
View raw message