2008/6/19 Fredrik Alströmer <[EMAIL PROTECTED]>:

> Hi People,
>
> I've been having this idea, and I was trying it out a little (using
> equinox) but it didn't work very well (not at all actually), and I thought
> before I try too much, I'll ask the experts, if this is even viewed as
> acceptable behavior.
>
> Here's the thing, I'm trying to intercept bundles before they're evaluated
> by the framework (imagine if you will a synchronous 'installing' event,
> which I couldn't find anywhere). For example, I'd like to inspect the
> contents of the bundle, and 'manipulate' it without actually having to do so
> as a preprocessing step. As a hypothetical example, let's say we want to
> define an import-package, and then defining a bundle-activator, using a
> class from the specified import-package. I realize there are serious
> security concerns here, so I'm just trying to get a feel for it.
>
> What I'm getting at is, using archives that are built for other frameworks,
> or other situations, and tweaking them at runtime to appear as OSGi bundles,
> without actually having to modify the archive.
>
> Does that seem possible at all?
>

it's certainly possible, although afaik there is no standard way to do this
on all OSGi frameworks.

the Knopflerfish team recently gave presentations on automatically repairing
third-party libraries:

   http://www.eclipsecon.org/2008/?page=sub/&id=145

http://www.osgi.org/wiki/uploads/CommunityEvent2008/30_knopflerfish-osgi-berlin-2008.pdf

and the SpringSource Application Platform uses some Equinox specific hooks
to process bundles:


http://blog.springsource.com/main/2008/04/30/introducing-the-springsource-application-platform

HTH


> Greetings,
> Fredrik.
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
Cheers, Stuart
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to