PackageAdmin has the resolveBundles(Bundle[]) method. You may still have issues getting a fragment to attach to a host bundle if that host bundle is already in the resolved state. In that case you must refresh the host first to force it to re-resolve. PackageAdmin#refreshPackages(Bundle[]) can be used to force a host bundle to re-resolve.
Hope that helps. Tom |------------> | From: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |Mirko Jahn <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | To: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |OSGi Developer Mail List <[email protected]> | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Date: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |12/11/2009 12:26 PM | >--------------------------------------------------------------------------------------------------------------------------------------------------| |------------> | Subject: | |------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| |[osgi-dev] launching API and resolving fragments | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hey there, I am currently playing with the new launching API introduced with r4.2. I managed to get several bundles started without any problems. Now I don't want to start all bundles (just resolve them) and in particular I want to resolve fragments (starting will throw an exception of course and not resolve). Am I missing something, because I couldn't find a way to attach the fragments without using proprietary APIs. Cheers, Mirko_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
