Skip to content

Commit 20b7424

Browse files
committed
ApiServer: Ask pluggable services to return list of apis to ApiServer
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 2e59bcf commit 20b7424

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎server/src/com/cloud/api/ApiServer.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ public void init() {
222222
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
223223
new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
224224

225+
for(PluggableService pluggableService: _pluggableServices)
226+
cmdClasses.addAll(pluggableService.getCommands());
227+
225228
for(Class<?> cmdClass: cmdClasses) {
226229
String apiName = cmdClass.getAnnotation(APICommand.class).name();
227230
if (_apiNameCmdClassMap.containsKey(apiName)) {

0 commit comments

Comments
 (0)