Hi everyone,
I think I discovered a bug with iPojo.
I quickly summarize what I do. I've got a class
@Component
@Provides(strategy = "SERVICE")
class A implements B {
@Validate
public void ready() {
// Initialize Stuff
}
}
Then, inside my code, I create a new instance via the factory and the API.
(mostly copied from
http://felix.apache.org/site/how-to-use-ipojo-factories.html#How-touseiPOJOfactories-Creatinginstances
)
Unfortunately, when I get the service via OSGi (or @Requires) the object is
well created, the instance is valid, but the method @Validate is not called.
I tried this on the ipojo core versions 1.6.2, 1.6.8 release and on the
trunk snapshot.
Is it me or the core has a bug ? When I do a ipojo:instance on the created
instance in the shell, I see that the handler callback is in the list but I
did not look inside the code to see how it is handled.
Thanks
LP