Moti Asayag has posted comments on this change.

Change subject: core: return backend instances with CDI instead JNDI
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.ovirt.org/#/c/40641/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java:

Line 104:     @Inject
Line 105:     private DbFacade dbFacade;
Line 106: 
Line 107:     public static BackendInternal getInstance() {
Line 108:         return Injector.get(BackendInternal.class);
why not just

   return this; 

?

The backend bean is a singleton which implements the BackendInternal interface, 
and by time of calling this method, the backend instance should have bee 
initialized (due to @Startup).
Line 109:     }
Line 110: 
Line 111:     private void initHandlers() {
Line 112:         mTagsHandler = HandlersFactory.createTagsHandler();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I3710d057c7feffe3c14f9b8d582bbc1c70461fa8
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to