felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1050416 - /felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java
Date Fri, 17 Dec 2010 15:23:09 GMT
Author: clement
Date: Fri Dec 17 15:23:08 2010
New Revision: 1050416

URL: http://svn.apache.org/viewvc?rev=1050416&view=rev
Log:
Fix FELIX-2732
Compute the id by removing the 'modified' prefix if possible:
modifiedFoo => Foo

Modified:
    felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java

Modified: felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java?rev=1050416&r1=1050415&r2=1050416&view=diff
==============================================================================
--- felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java
(original)
+++ felix/trunk/ipojo/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MethodCollector.java
Fri Dec 17 15:23:08 2010
@@ -314,8 +314,10 @@ public class MethodCollector extends Emp
                     m_id = m_name.substring("bind".length());
                 } else if (m_name.startsWith("unbind")) {
                     m_id = m_name.substring("unbind".length());
+                } else if (m_name.startsWith("modified")) {
+                	m_id = m_name.substring("modified".length());
                 } else {
-                    System.err.println("Cannot determine the id of the bind method : " +
m_name);
+                    System.err.println("Cannot determine the id of the " + m_type + " method
: " + m_name);
                     return;
                 }
             }



Mime
View raw message