I can think of a few different ways to do this:

* via service configuration change events, which are published to the event
admin and can be consumed by anyone who cares to monitor the
ConfigurationEvent topic.
* maually via your own APIs: expose an isConfigured() method in the 'A'
API.  Set A.isConfigured() to false on service construction, and once the
updated() methods is called, flip the switch.
* manually via an activator: don't use declarative services.  Instead, start
service trackers and event admin listeners.  When the magic combination of
services and configurations become available, construct A and B, configure
them, then register them as services manually.

You may find more/better ideas on the felix mailing list.

Josh

On Wed, Jan 12, 2011 at 11:04 PM, Christopher Brooks
<[email protected]>wrote:

> Hi,
>
> I have two services, A and B that implement ManagedService.  For B to
> be considered activated, A needs to be activated and to have had its
> update() method called.
>
> Is there a mechanism to do this in osgi/felix, or would I have to write
> the locking logic for this instead?
>
> Could we touch on this issue in the team meeting, especially if someone
> has ideas on how to just reuse someone elses implementation?
>
> Chris
>
> --
> Christopher Brooks, BSc, MSc
> ARIES Laboratory, University of Saskatchewan
>
> Web: http://www.cs.usask.ca/~cab938 <http://www.cs.usask.ca/%7Ecab938>
> Phone: 1.306.966.1442
> Mail: Advanced Research in Intelligent Educational Systems Laboratory
>     Department of Computer Science
>     University of Saskatchewan
>     176 Thorvaldson Building
>     110 Science Place
>     Saskatoon, SK
>     S7N 5C9
> _______________________________________________
> Matterhorn mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn
>
>
> To unsubscribe please email
> [email protected]
> _______________________________________________
>
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to