I don't see a way to do this purely with DS.

You should be able to do this with a ServiceTrackerCustomizer where the
Parent service is created and registered once "all" of the Child
services have been added to the registry. Likewise, once a Child service
was removed, you would deregister the Parent service.

That said, this seems very static to me. I'd suggest thinking about ways
of adapting to the notion that service dependencies may come and go
during a component's lifecycle.

Justin


On 5/26/10 2:32 PM, Tom Kesling wrote:
> Hello,
> I'm using configurationadmin and ds to create service instances and
> I'm trying to understand how to know when all of the instances have
> been created.
> 
> There are parent to child relationships where a parent can have 0..n children.
> I don't want to start using a parent until all of it's children have
> been created.
> 
> Does anyone have any advice on how to manage/approach this?
> 
> 
> Thanks,
> T
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to