Hi Matt,
A web search for "osgi bundle tracker fragment" yields this article:
http://java.dzone.com/articles/osgi-junit-test-extender-using. This uses a
BundleTrackerCustomizer,

bundleTracker = new BundleTracker(context, Bundle.RESOLVED, testExtender);
bundleTracker.open();

Which then tests to see if it's been given a fragment:

String fragment =
bundle.getHeaders().get(org.osgi.framework.Constants.FRAGMENT_HOST) + "";

> Thanks in advance!

You're welcome!

Regards,
Mark


On 6 September 2011 23:14, Matt Madhavan <[email protected]> wrote:

> Hello,
> I would like to know when a new BluePrint fragment attaches it self to a
> host bundle will the host bundle be notified? I would like to do some work
> inside of the host bundle anytime a fragment attaches itself to a host.
>
> Any ideas?
>
> Thanks in advance!
> Matt Madhavan
>

Reply via email to