public Collection<ServiceDirectory> getServiceDirectories() {
    return serviceDirectories;
  }
Obtain a collection of all service directories.

@return collection of all service directories
ambari-server/src/main/java/org/apache/ambari/server/stack/ExtensionDirectory.java