commit | d91efc03364ff69baccae0ee7ee42163d0109acf | [log] [tgz] |
---|---|---|
author | Guillaume Sauthier <guillaume@apache.org> | Thu May 30 10:41:07 2013 +0000 |
committer | Guillaume Sauthier <guillaume@apache.org> | Thu May 30 10:41:07 2013 +0000 |
tree | 651050cfa7828e57313faffac62916de24d165c7 | |
parent | 1e137a1a8a7cfed76b2d06690714d3d8be7bc7b7 [diff] |
FELIX-4091 Bnd iPOJO Plugin only browse classes annotated with some iPOJO annotations * Simply search for all annotated classes git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1487809 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java b/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java index ae6c9d7..d346ff2 100644 --- a/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java +++ b/ipojo/manipulator/bnd-ipojo-plugin/src/main/java/org/apache/felix/ipojo/bnd/BndJarResourceStore.java
@@ -83,13 +83,9 @@ 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);