iPojo - How can I force the factory to create an instance
Hi,
I am in trouble to figure out how I can force the factories of iPojo to create an instance of a component.
In my case, I have a "manager" class that have an optional @Requires on an Array of plugins.
My problem is that if nobody use my "manager", no instance of this manager is created.
And in my case, it's the fact nobody use it because it's a "manager".
I found a simple workaround. When my manager implements also the Felix Command interface, then the instance is created.
Could you help me to figure out what can be done to "force" the instantiation without the workaround.
I also tried with arch to dig into that problem and try to get a list of pending instantiations.
But I fail to find this. Don't you thing that this kind of feature could be helpful?
Regards,
/Etienne