I found the issue in the ipojo manipulator that is causing the behavior I'm
seeing.  
When the @PostUnregistration annotation is found, it is wrongly bound to the
PostRegistrationVisitor object.  In my case, this meant that the
PostRegistration callback was being overwritten by the PostUnregistration
callback.
The attached patch should fix the bug (I will also attach the patch to the
JIRA issue):

Index:
manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/module/DefaultBindingModule.java
===================================================================
---
manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/module/DefaultBindingModule.java
  
(revision 1620185)
+++
manipulator/src/main/java/org/apache/felix/ipojo/manipulator/metadata/annotation/module/DefaultBindingModule.java
  
(working copy)
@@ -252,7 +252,7 @@
                 .to(new AnnotationVisitorFactory() {
                     public AnnotationVisitor
newAnnotationVisitor(BindingContext context) {
                         MethodNode node = context.getMethodNode();
-                        return new
PostRegistrationVisitor(context.getWorkbench(), node.name);
+                        return new
PostUnregistrationVisitor(context.getWorkbench(), node.name);
                     }
                 });





--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/iPOJO-PostRegistration-not-being-called-tp5009596p5009612.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to