I am running osgi container on my system.
I have written a class which is a bundle activator actually, which gets invoked after deploying into osgi container.
In this class, I want to call function containerDetails() which lists out all bundles and its details.
For example, if bundle is fragments and in INSTALLED state, my java code should get details of it.
I am able to get state of bundle(ACTIVE,INSTALLED,STARTING etc.) but unable to check if bundle is fragments or not.
Can anybody help me out to write a java code which checks if bundle is fragments or not?