Reorganise dependency injection in ServiceHandler 32/94732/5
authorGilles Thouenon <gilles.thouenon@orange.com>
Wed, 27 Jan 2021 08:30:29 +0000 (09:30 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Mon, 1 Feb 2021 13:39:18 +0000 (14:39 +0100)
commit336faa20de5184eaf8b0c1e84d22b4a708381235
tree827ab434d305daa33aa20049eca67f0b31342d9f
parent8aa2a4274fed6e7aabe45832194733d91db0cf25
Reorganise dependency injection in ServiceHandler

- solve the ServiceHandler instance duplication issue when installing
  T-API feature
- remove manuel instanciations from ServicehandlerProvider to let
  blueprint manage object instantiation as a singleton
- remove ServiceHandlerOperations interface and its implementation that
  was duplicating OrgOpenroadmServiceService interface, and chose that
  latter in T-API module
- adapt constructors of service handler UT accordingly
- reorganise dependency injection in lighty to be aligned with blueprint
  files

JIRA: TRNSPRTPCE-391
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I99d93bef801e24fe9972c277abbcdf5d28f8e781
lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/service/ServiceHandlerOperations.java [deleted file]
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/service/ServiceHandlerOperationsImpl.java [deleted file]
servicehandler/src/main/resources/OSGI-INF/blueprint/servicehandler-blueprint.xml
servicehandler/src/test/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProviderTest.java
tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiImpl.java
tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiProvider.java
tapi/src/main/resources/OSGI-INF/blueprint/tapi-blueprint.xml