mirror of https://github.com/apache/cloudstack.git
ApiServer: Ask pluggable services to return list of apis to ApiServer
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
8c5cd42b56
commit
dfcd9b05a0
|
|
@ -222,6 +222,9 @@ public class ApiServer implements HttpRequestHandler {
|
|||
Set<Class<?>> cmdClasses = ReflectUtil.getClassesWithAnnotation(APICommand.class,
|
||||
new String[]{"org.apache.cloudstack.api", "com.cloud.api"});
|
||||
|
||||
for(PluggableService pluggableService: _pluggableServices)
|
||||
cmdClasses.addAll(pluggableService.getCommands());
|
||||
|
||||
for(Class<?> cmdClass: cmdClasses) {
|
||||
String apiName = cmdClass.getAnnotation(APICommand.class).name();
|
||||
if (_apiNameCmdClassMap.containsKey(apiName)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue