Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » extension points vs osgi services
extension points vs osgi services [message #106641] Thu, 20 March 2008 03:47 Go to next message
Eclipse UserFriend
Originally posted by: fireresq.embarqmail.com

how should I decide which to use? Could some one point to good articles to help me make the decision
Re: extension points vs osgi services [message #106683 is a reply to message #106641] Thu, 20 March 2008 07:26 Go to previous messageGo to next message
Danail Nachev is currently offline Danail NachevFriend
Messages: 110
Registered: July 2009
Senior Member
Hi,

Here is a good comparison between Extension Registry and OSGi Service
Registry written by Neil Barlett:

http://neilbartlett.name/downloads/extensions_vs_services.pd f

Danail

Mark Russell wrote:
> how should I decide which to use? Could some one point to good articles
> to help me make the decision
Re: extension points vs osgi services [message #106712 is a reply to message #106683] Thu, 20 March 2008 16:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jconlon.apache.org

Hi Mark,

What a timely question!

In addition to Neil's fine article, you should know this is a hot panel
topic
http://www.eclipsecon.org/2008/index.php?page=sub/&id=49 2

that is being discussed today at the OSGi DevCon
http://www.osgi.org/Conference/HomePage
(which is part of EclipseCon)

See Perter Kriens' OSGi blog, I am sure he will blog about it
today/tomorrow:
http://www.osgi.org/blog/

IMHO - use both. If you have services that are external and dynamic use
the OSGi services (ServiceTracker usage is the simplest) for
Workbench/Eclipse RCP interface extensions use the Extensions.

cheers,
John

Danail Nachev wrote:
> Hi,
>
> Here is a good comparison between Extension Registry and OSGi Service
> Registry written by Neil Barlett:
>
> http://neilbartlett.name/downloads/extensions_vs_services.pd f
>
> Danail
>
> Mark Russell wrote:
>> how should I decide which to use? Could some one point to good articles
>> to help me make the decision
Re: extension points vs osgi services [message #106739 is a reply to message #106712] Thu, 20 March 2008 20:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fireresq.embarqmail.com

thanks I went to the panel ant it was very interesting. Looking forward to reading the other papers and getting involved with
the OSGi project.

John E. Conlon wrote:
> Hi Mark,
>
> What a timely question!
>
> In addition to Neil's fine article, you should know this is a hot panel
> topic
> http://www.eclipsecon.org/2008/index.php?page=sub/&id=49 2
>
> that is being discussed today at the OSGi DevCon
> http://www.osgi.org/Conference/HomePage
> (which is part of EclipseCon)
>
> See Perter Kriens' OSGi blog, I am sure he will blog about it
> today/tomorrow:
> http://www.osgi.org/blog/
>
> IMHO - use both. If you have services that are external and dynamic use
> the OSGi services (ServiceTracker usage is the simplest) for
> Workbench/Eclipse RCP interface extensions use the Extensions.
>
> cheers,
> John
>
> Danail Nachev wrote:
>> Hi,
>>
>> Here is a good comparison between Extension Registry and OSGi Service
>> Registry written by Neil Barlett:
>>
>> http://neilbartlett.name/downloads/extensions_vs_services.pd f
>>
>> Danail
>>
>> Mark Russell wrote:
>>> how should I decide which to use? Could some one point to good articles
>>> to help me make the decision
Re: extension points vs osgi services [message #106767 is a reply to message #106641] Mon, 24 March 2008 10:15 Go to previous messageGo to next message
Dennis O'Flynn is currently offline Dennis O'FlynnFriend
Messages: 73
Registered: July 2009
Member
There is an interesting EclipseCon 2006 presentation by Jeff McAffer and BJ
Hargrave on the topic of OSGi Services vs. Eclipse Extension Points:

http://www.eclipse.org/equinox/documents/eclipsecon2006/Best %20Practices%20for%20Programming%20Eclipse%20and%20OSGi.pdf

"Mark Russell" <fireresq@embarqmail.com> wrote in message
news:frsmnm$gjs$1@build.eclipse.org...
> how should I decide which to use? Could some one point to good articles to
> help me make the decision
Re: extension points vs osgi services [message #106841 is a reply to message #106641] Wed, 26 March 2008 11:24 Go to previous message
Eclipse UserFriend
Originally posted by: Boyan.Yurukov.softwareag.com

Here is a short explanation as I get it. I am not sure if it would come out
accurate:

OSGi services are basic java objects that are put in a registry for other
bundles to use. Usually one exports an interface they implement so that the
other bundles can easily use them. When bundle A requires bundle B and it
expects a service from it, most often A knows of what interface the service
is and the service call is hardwired. So overall one has a java object that
recieves calls from other bundles.

An extention point, on the other hand is a definition of a "requirement" for
extention. There is no passed functionality, but a "request" for
functionality, which, when provided through an extenstion, is then handled
inside the bundle. In my view an OSGI service is closer to an extenstion in
the sence that a bundle publishes code for the others to use. However, in an
extention we provide that functionality for a specific bundle and we don't
pass an object, but just a class name and some text properties. That class
name is later used in the bundle, that specified the extention point, to
create an instance and use the new functionality.

Hope I didn't sound too messed up.

Greetings,
Boyan.



"Mark Russell" <fireresq@embarqmail.com> wrote in message
news:frsmnm$gjs$1@build.eclipse.org...
> how should I decide which to use? Could some one point to good articles to
> help me make the decision
Previous Topic:Calling third party jar method from OSGi Bundle
Next Topic:Bundle resource location when unpacked?
Goto Forum:
  


Current Time: Fri Dec 27 13:37:37 GMT 2024

Powered by FUDForum. Page generated in 0.05726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top