If I have a reference in an SCR component like the following,

@Reference(policy = ReferencePolicy.DYNAMIC)
private final Collection<MyServiceType> factories = new java.util.ArrayList<>();

Since the collection is updated by the runtime as services come and go, I 
assume it's prudent to synchronize
on the collection when iterating over it whereas in Blueprint I got the 
impression this wasn't necessary.

Would that be correct?

Scott Leschke
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to