You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/02/07 00:28:06 UTC

[12/23] git commit: refs/heads/vim51_win8 - Revert "ApiDiscovery: Discovery apis provided by PluggableServices as well"

Revert "ApiDiscovery: Discovery apis provided by PluggableServices as well"

This reverts commit 1b9e5c3006b5b9ee6b301d65fc8d81675914c826.

Signed-off-by: Hugo Trippaers <ht...@schubergphilis.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/d296a8fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/d296a8fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/d296a8fa

Branch: refs/heads/vim51_win8
Commit: d296a8fa65b35874cc1e8dea46d09bc7839d5fd5
Parents: 1b9e5c3
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Wed Feb 6 14:17:22 2013 +0100
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Wed Feb 6 14:17:22 2013 +0100

----------------------------------------------------------------------
 .../discovery/ApiDiscoveryServiceImpl.java         |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/d296a8fa/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
----------------------------------------------------------------------
diff --git a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
index e3bc4d3..7689ba4 100644
--- a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
+++ b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
@@ -67,8 +67,6 @@ public class ApiDiscoveryServiceImpl implements ApiDiscoveryService {
             //TODO: Fix and use PluggableService to get the classes
             Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
                     new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
-            for(PluggableService service: _services)
-                cmdClasses.addAll(service.getCommands());
             cacheResponseMap(cmdClasses);
             long endTime = System.nanoTime();
             s_logger.info("Api Discovery Service: Annotation, docstrings, api relation graph processed in " + (endTime - startTime) / 1000000.0 + " ms");