Revert "ApiDiscovery: Discovery apis provided by PluggableServices as well"

This reverts commit 1b9e5c3006b5b9ee6b301d65fc8d81675914c826.

Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
This commit is contained in:
Hugo Trippaers 2013-02-06 14:17:22 +01:00
parent 1b9e5c3006
commit d296a8fa65

View File

@ -67,8 +67,6 @@ public class ApiDiscoveryServiceImpl implements ApiDiscoveryService {
//TODO: Fix and use PluggableService to get the classes
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
for(PluggableService service: _services)
cmdClasses.addAll(service.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");