I have a OSGi Java 8 project running with iPojo 1.12.1
I use Factories to create InstanceManager via the createComponentInstance method.
Once I'm done with the InstanceManager I call dispose on it. I would expect the memory to be released, but the object still has a strong reference to it from other iPojo objects.
Factory myFactory; // Get the factory
InstanceManager instance = (InstanceManager) myFactory.createComponentInstance(null); // Get an instance
Object myObject = instance.getPojoObject(); // Retrieve the actual object
// Do something with the object.
myObject = null; // remove all reference to the object
instance.dispose(); // Dispose of the instance manager.
instance = null; // Remove my strong reference to the instance.
Is there anything I'm missing for the cleanup?