Skip to content

Commit 8071bb7

Browse files
yadvrchipchilders
authored andcommitted
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>
1 parent ae9aef2 commit 8071bb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎plugins/api/discovery/src/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void init() {
7373
s_logger.debug(String.format("getting api commands of service: %s", service.getClass().getName()));
7474
cmdClasses.addAll(service.getCommands());
7575
}
76+
cmdClasses.addAll(this.getCommands());
7677
cacheResponseMap(cmdClasses);
7778
long endTime = System.nanoTime();
7879
s_logger.info("Api Discovery Service: Annotation, docstrings, api relation graph processed in " + (endTime - startTime) / 1000000.0 + " ms");

0 commit comments

Comments
 (0)