[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Providing a callback to an OSGi bundle

The eclipse buddy policies have a number of issues. For example, when multiple versions of bundles exist it is random which version your buddy will be. Also if multiple versions of a package exist in the framework there is a potential for class space inconsistencies. Supporting legacy code and defining a concise modular framework do not always go hand in hand. Many folks in OSGi like to call these kinds of "features" in eclipse as "legacy hacks". To a certain extent I can agree, but at this point no one has come up with a better solution that requires *no* change to the legacy code to make it work in an OSGi modular environment.

In OSGi we would like to spec some solution to to help support legacy code that uses Class.forName and the context class loader in OSGi to find extensions. For many cases buddy class loading works nicely, but at this point the buddy class loading mechanism has too many limitations to be considered for the OSGi specification.

Tom



Inactive hide details for "Saminda Abeyruwan" ---04/17/2008 11:36:18 AM---Dear Tom,"Saminda Abeyruwan" ---04/17/2008 11:36:18 AM---Dear Tom,


From:

"Saminda Abeyruwan" <samindaa@xxxxxxxxx>

To:

"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>

Date:

04/17/2008 11:36 AM

Subject:

Re: [equinox-dev] Providing a callback to an OSGi bundle




Dear Tom,

Thank you for the swift reply.

What you have suggested solved the entire problem. I used

Eclipse-BuddyPolicy, and Eclipse-RegisterBuddy
bundle manifest headers to get more control over wiring buddies.

I was wondering is there a provision to standardize these bundle manifest headers in future OSGi specification. IMO this would be a very important extension to have in OSGi spec.

Thank you!

Saminda

On Thu, Apr 17, 2008 at 7:02 PM, Thomas Watson <tjwatson@xxxxxxxxxx> wrote:

From:

"Saminda Abeyruwan" <samindaa@xxxxxxxxx>

To:

equinox-dev@xxxxxxxxxxx

Date:

04/17/2008 04:27 AM

Subject:

[equinox-dev] Providing a callback to an OSGi bundle



--
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. -
www.wso2.org _______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

GIF image

GIF image

GIF image

GIF image