getDependenciesForPod method
Return the names of all pods that the specified pod depends on, if any.
name: The name of the pod to get dependencies for
Returns a list of pod names that the specified pod depends on
Example:
final dependencies = registry.getDependenciesForPod('orderService');
print('OrderService depends on: $dependencies');
Implementation
@protected
List<String> getDependenciesForPod(String name) {
final dependenciesForPod = _dependenciesForPods[name];
if (dependenciesForPod == null) {
return [];
}
return synchronized(_dependenciesForPods, () => List.from(dependenciesForPod));
}