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>
This commit is contained in:
Rohit Yadav 2013-03-14 16:17:14 -04:00 committed by Chip Childers
parent ae9aef2bc8
commit 8071bb7fec
1 changed files with 1 additions and 0 deletions

View File

@ -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");