incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chipchild...@apache.org
Subject git commit: refs/heads/4.1 - Spring fails to inject the class itself which is a pluggable service. A minor issue, but the listApis won't list the "listApis" API itself. So, we manually addAll getCommands() from the class to the cmdClass (the list of cmd
Date Thu, 14 Mar 2013 20:19:49 GMT
Updated Branches:
  refs/heads/4.1 ae9aef2bc -> 8071bb7fe


Spring fails to inject the class itself which is a pluggable service. A
minor issue, but the listApis won't list the "listApis" API itself.
So, we manually addAll getCommands() from the class to the cmdClass (the
list of cmd classes)

Signed-off-by: Chip Childers <chip.childers@gmail.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/8071bb7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8071bb7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8071bb7f

Branch: refs/heads/4.1
Commit: 8071bb7fecd860fa875f9eecdc5778678d10814a
Parents: ae9aef2
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Thu Mar 14 16:17:14 2013 -0400
Committer: Chip Childers <chip.childers@gmail.com>
Committed: Thu Mar 14 16:17:14 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8071bb7f/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 293a1a4..b371488 100755
--- a/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
+++ b/plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java
@@ -73,6 +73,7 @@ public class ApiDiscoveryServiceImpl implements ApiDiscoveryService {
                 s_logger.debug(String.format("getting api commands of service: %s", service.getClass().getName()));
                 cmdClasses.addAll(service.getCommands());
             }
+            cmdClasses.addAll(this.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");


Mime
View raw message