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 07:51 Go to next message
Flavio Donze is currently offline Flavio Donze
Messages: 157
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


Organisations- und Prozessdokumentation Software
Qualit├Ąt Management QMS :: Information Management IMS
http://www.scodi.ch
Re: Spring OSGi Service Registration Listener [message #792252 is a reply to message #784383] Mon, 06 February 2012 14:59 Go to previous message
Costin Leau is currently offline Costin Leau
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: Tue Jul 22 21:45:42 EDT 2014

Powered by FUDForum. Page generated in 0.03359 seconds