From 8071bb7fecd860fa875f9eecdc5778678d10814a Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 14 Mar 2013 16:17:14 -0400 Subject: [PATCH] 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 --- .../org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java | 1 + 1 file changed, 1 insertion(+) 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 293a1a47c19..b3714883964 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");