Skip to content

Commit e234fcf

Browse files
committed
ApiDiscovery: Discovery apis provided by PluggableServices as well
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 20b7424 commit e234fcf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ protected ApiDiscoveryServiceImpl() {
6767
//TODO: Fix and use PluggableService to get the classes
6868
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
6969
new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
70+
for(PluggableService service: _services)
71+
cmdClasses.addAll(service.getCommands());
7072
cacheResponseMap(cmdClasses);
7173
long endTime = System.nanoTime();
7274
s_logger.info("Api Discovery Service: Annotation, docstrings, api relation graph processed in " + (endTime - startTime) / 1000000.0 + " ms");

0 commit comments

Comments
 (0)