felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1242278 - /felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java
Date Thu, 09 Feb 2012 11:06:12 GMT
Author: clement
Date: Thu Feb  9 11:06:11 2012
New Revision: 1242278

URL: http://svn.apache.org/viewvc?rev=1242278&view=rev
Log:
Do not inspect super classes and implemented interfaces for non primitive components.

Modified:
    felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java

Modified: felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java?rev=1242278&r1=1242277&r2=1242278&view=diff
==============================================================================
--- felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java (original)
+++ felix/trunk/ipojo/core/src/main/java/org/apache/felix/ipojo/ComponentFactory.java Thu
Feb  9 11:06:11 2012
@@ -557,9 +557,12 @@ public class ComponentFactory extends IP
             super(factory);
 
             try {
-                // Read inherited classes and interfaces into given Sets.
-                new InheritanceInspector(getPojoMetadata(), getBundleContext().getBundle()).
-                        computeInterfacesAndSuperClasses(m_interfaces, m_superClasses);
+                // The inspection can be done only for primitive components
+                if (m_classname != null) {
+                    // Read inherited classes and interfaces into given Sets.
+                    new InheritanceInspector(getPojoMetadata(), getBundleContext().getBundle()).
+                            computeInterfacesAndSuperClasses(m_interfaces, m_superClasses);
+                }
             } catch (ClassNotFoundException e) {
                 m_interfaces.clear();
                 m_superClasses.clear();
@@ -639,7 +642,6 @@ public class ComponentFactory extends IP
              * @throws ClassNotFoundException : occurs when an interface cannot be loaded.
              */
             public void computeInterfacesAndSuperClasses(Set interfaces, Set classes) throws
ClassNotFoundException {
-
                 String[] immediateInterfaces = m_pojoMetadata.getInterfaces();
                 String parentClass = m_pojoMetadata.getSuperClass();
 



Mime
View raw message