Felix Meschberger-2 wrote:
> 
> Clients always get a deterministic answer: The services registered at
> the time of the call. The non-determinism comes from the fact, that the
> services are registered asynchronously, which is by design and good.
> 

Thanks for the explanation. You mentioned a few times that the
non-determinism is good. I can see how that would be the true in some cases,
and not so much in others.

As it is, I have unit tests in which I do not want to introduce regressions,
and these tests are checking that the program has a certain appearance --
specifically, it is examining the state of the user interface's menu items.
I have turned these menu items into bundles, such that each bundle can
contribute to the UI.

So even if I change my client to respond to bind() and unbind() methods, and
dynamically register/unregister these menu items, then the UI will work
correctly (with menu items coming and going, I suppose), but the unit tests
still fail. I want to avoid that.

As I describe my situation, I get the impression that I should be using
extensions rather than services... but I have not yet tried using extensions
with Felix (that would require Equinox?). So far, I was enjoying the
simplicity of Felix + SCR, because it has gotten me 95% of the way there.

But I will look into these alternate approaches and report back. Thanks for
the help.
-- 
View this message in context: 
http://www.nabble.com/Wait-for-services-to-be-fully-registered--tp17741822p17777677.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to