use of io.fabric8.api.DynamicReference in project fabric8 by jboss-fuse.
the class ComputeRegistryImpl method list.
@Override
public List<ComputeService> list() {
assertValid();
List<ComputeService> list = new ArrayList<ComputeService>();
for (Map.Entry<String, DynamicReference<ComputeService>> entry : computeServices.entrySet()) {
ComputeService computeService = entry.getValue().getIfPresent();
if (computeService != null) {
list.add(computeService);
}
}
return list;
}
Aggregations