Change in ovirt-engine[master]: restapi: Recursively scan for service interfaces

juan.hernandez at redhat.com juan.hernandez at redhat.com
Wed Sep 21 08:02:13 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Recursively scan for service interfaces
......................................................................


restapi: Recursively scan for service interfaces

The creation of links to collections relies on scanning of the
implementation classes, in order to find the implemented service
interfaces. But currently the code that does this scanning doesn't take
into account that some interfaces may not be implememented directly, but
by base classes. In those situations the links to collections aren't
created correctly. The 'BackendDataCenterNetworksResource' class is an
example of that. It doesn't directly implement any service interface,
only the base class does. To avoid that issue this patch changes the
scanning code so that it recursively scans the parent classes.

Change-Id: Ice711e9e94048ac695c4cd502e8beb563f6f2017
Bug-Url: https://bugzilla.redhat.com/1375668
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendResource.java
1 file changed, 20 insertions(+), 2 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/64193
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ice711e9e94048ac695c4cd502e8beb563f6f2017
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list