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

[8/23] git commit: refs/heads/vim51_win8 - ApiServer: Ask pluggable services to return list of apis to ApiServer

ApiServer: Ask pluggable services to return list of apis to ApiServer

Signed-off-by: Rohit Yadav <bh...@apache.org>


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

Branch: refs/heads/vim51_win8
Commit: dfcd9b05a08f93e760bd6bfd8cef7d3174a7b804
Parents: 8c5cd42
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Feb 6 16:53:05 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Feb 6 16:54:46 2013 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServer.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/dfcd9b05/server/src/com/cloud/api/ApiServer.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java
index 233da15..e41fcb5 100755
--- a/server/src/com/cloud/api/ApiServer.java
+++ b/server/src/com/cloud/api/ApiServer.java
@@ -222,6 +222,9 @@ public class ApiServer implements HttpRequestHandler {
         Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
                 new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
 
+        for(PluggableService pluggableService: _pluggableServices)
+            cmdClasses.addAll(pluggableService.getCommands());
+
         for(Class<?> cmdClass: cmdClasses) {
             String apiName = cmdClass.getAnnotation(APICommand.class).name();
             if (_apiNameCmdClassMap.containsKey(apiName)) {