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
Hi,
From the original question I would say No, there is no way for a host bundle
to receive a notification when a fragment attaches. Fragments only attach at
resolution time, therefore the host bundle can never see the attachment
because it is, by definition, not resolved yet!
What you can
Hi,
So the Aries JPA container uses the createContainerEntityManagerFactory method
to build EMFs. This provides, amongst other things, a ClassLoader for the
persistence unit. IMO JPA providers should use this to load config if it isn't
found on their own classloader.
Regards,
Tim
Date: