OSGI bundle (or service)- how to register for a given time period?
Posted
by
Alec
on Stack Overflow
See other posts from Stack Overflow
or by Alec
Published on 2010-12-17T15:24:34Z
Indexed on
2010/12/30
12:54 UTC
Read the original article
Hit count: 170
Hello, all!
Search did not give me a hint, how can i behave with the following situation:
I'd love to have 2 OSGI implementations of the same interface: one is regular, the other should work (be active/present/whatever) on the given time period (f.e for Christmas weeks :))
The main goal is to call the same interface without specifying any flags/properties/without manual switching of ranking. Application should somehow switch implementation for this special period, doing another/regular job before and after :)
I'm a newbie, maybe i do not completely understand OSGI concept somewhere, sorry for that of give me a hint or link, sorry for my English.
Using Felix/Equinox with Apache Aries.
© Stack Overflow or respective owner