Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Contribute an OSGI service or extension point that can be queried from command line utilities too
Contribute an OSGI service or extension point that can be queried from command line utilities too [message #93446] Tue, 31 July 2007 18:54 Go to next message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Hi,
Not sure if this is the correct forum. Please re-direct otherwise.

I have a data file that I will read and create a data model for display in
an Eclipse View. Then I also have a generic validation framework where I
have defined an extension point, so that other can contribute classes to
validatie the data model loaded from the data file. Unfortunately, all this
works fine when I am within the Eclipse UI, since the Eclipse registry that
allows me to query for all extensions to my extension point is setup.

But I would also like to be able to call the same validations outside of
eclipse, in a command line utility.

I am looking to write a validation plugin such that I can define an
extension point or a OSGI service so that others can also contribute plugins
with additional validations. My framework validation plugin should be able
to gather all validation classes contributed to validate a particular data
model. Can you advice me if what I need is OSGI services? Are there any
other services or extensions that I can use to achieve this - to be able to
query the contributed extensions both inside eclipse and from command line
utlitilies.

Thanks,
Rashmy
Re: Contribute an OSGI service or extension point that can be queried from command line utilities to [message #93532 is a reply to message #93446] Tue, 31 July 2007 21:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

This is easy enough; we've run a few posts on that kind of subject at Eclipsezone before:

http://www.eclipsezone.com/eclipse/forums/m92130843.html

You can also see how to launch the EclipseStarter if you want to bring it up in an existing Java application:

http://www.eclipsezone.org/eclipse/forums/m92131170.html

You can also use IApplication or IPlatformRunnable to get up and running. I've got a TODO to write about them ...

Alex.
Re: Contribute an OSGI service or extension point that can be queried from command line utilities to [message #93615 is a reply to message #93446] Wed, 01 August 2007 13:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you can also create a headless RCP app ... it will start up enough of
the eclipse platform to give you access to the extension registry, etc,
just without any of the UI.

Check out org.eclipse.update.code which defines the headless application
org.eclipse.update.core.standaloneUpdate and uses the class
org.eclipse.update.standalone.StandaloneUpdateApplication to process
command line arguments.

Later,
PW


Re: Contribute an OSGI service or extension point that can be queried from command line utilities to [message #93627 is a reply to message #93615] Wed, 01 August 2007 13:10 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That's org.eclipse.update.core :-) which should contain code

Later,
PW


Re: Contribute an OSGI service or extension point that can be queried from command line utilities to [message #93906 is a reply to message #93532] Thu, 02 August 2007 14:05 Go to previous message
Rashmy A is currently offline Rashmy AFriend
Messages: 149
Registered: July 2009
Senior Member
Thanks for the replies. I'll investigate on these options and see if it will
help me.

"Alex Blewitt" <alex_blewitt@yahoo.com> wrote in message
news:1002338749.2601185915871230.JavaMail.root@cp9.dzone.com...
> This is easy enough; we've run a few posts on that kind of subject at
> Eclipsezone before:
>
> http://www.eclipsezone.com/eclipse/forums/m92130843.html
>
> You can also see how to launch the EclipseStarter if you want to bring it
> up in an existing Java application:
>
> http://www.eclipsezone.org/eclipse/forums/m92131170.html
>
> You can also use IApplication or IPlatformRunnable to get up and running.
> I've got a TODO to write about them ...
>
> Alex.
Previous Topic:Does Bundle-NativeCode support external dlls?
Next Topic:Config Admin
Goto Forum:
  


Current Time: Fri Apr 26 14:17:30 GMT 2024

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

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

Back to the top