It should be useful to provide a way to manipulate services without having to take care of dynamism (ie. service isn't present).
I propose something like that :
@Inject Service<MyService> service;
for (MyService s : service.first()) {
// code here is executed 0 or 1 time.
}
and
@Inject @OSGiService MyService service;
for (MyService s : safe(service)) {
// code here is executed 0 or 1 time.
}
It should be useful to provide a way to manipulate services without having to take care of dynamism (ie. service isn't present). I propose something like that :
and
WDYT ?