Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Spring OSGi Service Registration Listener
Spring OSGi Service Registration Listener [message #784383] Fri, 27 January 2012 12:51 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member
Hello

I'm using Spring dm to create beans and register them as OSGi services.
I would like to dynamically add service properties.

I found this http://static.springsource.org/osgi/docs/2.0.0.M1/reference/html-single/#service-registry:export:registration
but here I have to create an additional bean for every service.

1. is there a way to add properties (e.g. rank) to all services published through an application context. e.g. some listener or "pre publish" hook?

2. is there a way to add properties to specific services?

There is the OsgiServiceRegistrationListener but I think you can't add any additional properties at the register state.

Thanks for any Help!
greets
Flavio


Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
Re: Spring OSGi Service Registration Listener [message #792252 is a reply to message #784383] Mon, 06 February 2012 19:59 Go to previous message
Costin Leau is currently offline Costin LeauFriend
Messages: 45
Registered: February 2010
Member
# my second retry posting

There's no support for this out of the box but you can create:
1. a bean factory post processor that automatically adds the exporter definitions based on your criteria.
2. a generic exporter that either programatically or through Spring creates the individual service exporters.
Previous Topic:Release of Gemini Management 1.0.0
Next Topic:Gemini blueprint: Spring NamespaceHandler management
Goto Forum:
  


Current Time: Thu Apr 25 07:16:26 GMT 2024

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

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

Back to the top