Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Hot to get access to an OSGi service in a bundle Activator (e4)?
Hot to get access to an OSGi service in a bundle Activator (e4)? [message #1208008] Sun, 24 November 2013 22:05 Go to next message
Marina Knieling is currently offline Marina KnielingFriend
Messages: 83
Registered: February 2013
Member
Hey guys,

I want to save and restore a value from an OSGi service via eclipse
preferences (the last opened object of type O). I thought of doing this
in the bundle Activator of my application bundle. Is it possible to get
access to the OSGi service respectively to start the service in order to
retrieve the value? If not, what is the best way to store and retrieve
values via the eclipse Preferences API during startup and shutdown of
the application?

Thanks in advance for any help
Marina
Re: Hot to get access to an OSGi service in a bundle Activator (e4)? [message #1208846 is a reply to message #1208008] Mon, 25 November 2013 07:52 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 24.11.13 23:05, Marina Knieling wrote:
> Hey guys,
>
> I want to save and restore a value from an OSGi service via eclipse
> preferences (the last opened object of type O). I thought of doing this
> in the bundle Activator of my application bundle. Is it possible to get
> access to the OSGi service respectively to start the service in order to
> retrieve the value? If not, what is the best way to store and retrieve
> values via the eclipse Preferences API during startup and shutdown of
> the application?
>
> Thanks in advance for any help
> Marina

in an e4 app i would use the lifecycle hook @PreSave which is called
when the application is shutdown.

Tom
Previous Topic:style focused text widget
Next Topic:Setting IEclipsePreferences in headless build
Goto Forum:
  


Current Time: Fri Apr 26 07:02:59 GMT 2024

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

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

Back to the top