Intro. @Inject @Singleton etc. in some helper services, for testability 30/47830/1
authorMichael Vorburger <vorburger@redhat.com>
Wed, 2 Nov 2016 10:18:28 +0000 (11:18 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Wed, 2 Nov 2016 10:50:28 +0000 (11:50 +0100)
commit7a9609bfade7a2a2ae7e106903f0fcdb071d501a
tree5900f8923cda95e2d527f8c45a57ef1392bd7055
parentfc473f1c0d9ee8003156db49b109dd8a11394c3c
Intro. @Inject @Singleton etc. in some helper services, for testability

This should not have any impact to real runtime code, and is hopefully
low risk. In particular, this alone does *NOT* yet actually exploit
these annotations for auto. generating blueprint XML (because I'm not
activating the blueprint-maven-plugin here, yet).

But adding these is useful already, because it allows these helper
services to be easily used in dependency injection via Guice in
Component Tests.

These annotation can however, later also be used by the
blueprint-maven-plugin - once the respective projects fully switch.

This change also includes a bunch of otherwise completely unrelated
automated formatting and code clean-up which happened automatically as I
was touching these files.

Change-Id: If1c3fe6d03f089bbeee0453742fe5cea8f4f098d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
idmanager/idmanager-impl/src/main/java/org/opendaylight/genius/idmanager/IdManager.java
idmanager/idmanager-impl/src/main/java/org/opendaylight/genius/idmanager/IdManagerServiceProvider.java
idmanager/idmanager-impl/src/test/java/org/opendaylight/genius/idmanager/test/IdManagerTest.java
interfacemanager/interfacemanager-impl/src/main/java/org/opendaylight/genius/interfacemanager/rpcservice/InterfaceManagerRpcService.java
lockmanager/lockmanager-impl/pom.xml
lockmanager/lockmanager-impl/src/main/java/org/opendaylight/lockmanager/LockManager.java