Refactor class/instance loading and resolving in the SLI module 39/94939/6
authorSamuel Kontris <samuel.kontris@pantheon.tech>
Wed, 4 Sep 2019 13:31:48 +0000 (15:31 +0200)
committerDan Timoney <dtimoney@att.com>
Tue, 15 Oct 2019 18:19:47 +0000 (18:19 +0000)
commit574363f5a29ac9237a377c4c0923b414a38fddec
tree7f74f7e8acfc05055bd3ff281e57d6b0c37cb982
parent4999c933f01789a4f71eb34cc32c7377c62ee2dd
Refactor class/instance loading and resolving in the SLI module

Code from the static class SvcLogicAdaptorFactory is moved
to the SvcLogicClassResolver class.

Class SvcLogicClassResolver is created as a bean in the blueprint xml
file, not as singleton directly in the code. Then is injected via
blueprint into the SvcLogicServiceImpl.

Methods registerExecutor and unregisterExecutor from
the SvcLogicServiceImpl class are removed - are not used anywhere.

This change causes compilation error in the northbound repository.
Fix for this error is here:
https://gerrit.onap.org/r/#/c/ccsdk/sli/northbound/+/95053/

Issue-ID: CCSDK-1688
Change-Id: I26ce01b761ab5d17f1cc19e39af581b1963658a5
Signed-off-by: Samuel Kontris <samuel.kontris@pantheon.tech>
sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicAdaptorFactory.java [deleted file]
sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicClassResolver.java
sli/provider/src/main/java/org/onap/ccsdk/sli/core/sli/provider/SvcLogicServiceImpl.java
sli/provider/src/main/resources/OSGI-INF/blueprint/sli-blueprint.xml
sli/provider/src/main/resources/org/opendaylight/blueprint/sli-blueprint.xml
sli/provider/src/test/java/org/onap/ccsdk/sli/core/sli/provider/ITCaseSvcLogicGraphExecutor.java
sliapi/provider/src/test/java/org/onap/ccsdk/sli/core/sliapi/TestSliapiProvider.java