On 8 Dec 2010, at 22:42 , Lindsay Smith wrote: > Knoplerfish does dynamic byte code patching of bundles: > http://www.modumind.com/2009/06/03/making-osgi-easier/ (thanks OSGI planet). > > Is there any way to implement byte code patching of bundles outside of the > framework? Is the extender pattern useful here? Spring DM apparently does > it - how is it achieved?
Dynamic byte code patching should probably be done when the bundle gets installed (before it is resolved), so it would mean you'd have to somehow intercept the incoming InputStream before it goes to BundleContext's installBundle(). > I've read the spec over and over and can't work out if the bundle tracker api > allows you to intercept calls to the bundle you are tracking - if you return > something other than the Bundle from the addingBundle method - what does that > do? BundleTracker is a helper class for bundles that want to create dependencies on bundles. Completely different scenario. Greetings, Marcel
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
