Roy Golan has uploaded a new change for review.

Change subject: core: use Injector in Utils
......................................................................

core: use Injector in Utils

to get DbFace its recommended to use Injector.get

and not SimpleDependencyInjector

Change-Id: Ie777f6d63b6979049b9f84413404ab8e92bcdbcc
Signed-off-by: Roy Golan <rgo...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
1 file changed, 0 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/28/37928/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
index 36cd0c7..97f1a29 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
@@ -189,9 +189,6 @@
         // we need to initialize os-info before the compensations take place 
because of VmPoolCommandBase#osRepository
         initOsRepository();
 
-        //TODO temporal solution DbFacade in Utils
-        SimpleDependecyInjector.getInstance().bind(dbFacade);
-        
         // When getting a proxy to this bean using JBoss embedded, the 
initialize method is called for each method
         // invocation on the proxy, as it is called by setup method which is 
@PostConstruct - the initialized flag
         // makes sure that initialization occurs only once per class (which is 
ok, as this is a @Service)


-- 
To view, visit http://gerrit.ovirt.org/37928
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie777f6d63b6979049b9f84413404ab8e92bcdbcc
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to