From dfcd9b05a08f93e760bd6bfd8cef7d3174a7b804 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Wed, 6 Feb 2013 16:53:05 +0530 Subject: [PATCH] ApiServer: Ask pluggable services to return list of apis to ApiServer Signed-off-by: Rohit Yadav --- server/src/com/cloud/api/ApiServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java index 233da158643..e41fcb50513 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> 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)) {