Maor Lipchuk has posted comments on this change.

Change subject: core: Introduce CDI for Commands dependencies
......................................................................


Patch Set 12:

(2 comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
Line 19: 
Line 20: import org.apache.commons.collections.KeyValue;
Line 21: import org.apache.commons.lang.StringUtils;
Line 22: import org.apache.commons.lang.exception.ExceptionUtils;
Line 23: import org.ovirt.engine.core.bll.attestationbroker.AttestThread;
not sure it is related to the patch
Line 24: import org.ovirt.engine.core.bll.context.CommandContext;
Line 25: import 
org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor;
Line 26: import 
org.ovirt.engine.core.bll.interfaces.BackendCommandObjectsHandler;
Line 27: import org.ovirt.engine.core.bll.interfaces.BackendInternal;


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Injector.java
Line 10:     private BeanManager manager;
Line 11: 
Line 12:     public Injector() {
Line 13:         try {
Line 14:             this.manager = (BeanManager) new 
InitialContext().lookup("java:comp/BeanManager");
Consider to declare a constant for java:comp/BeanManager
Line 15:         } catch (NamingException e) {
Line 16:             // if the bean manager couldn't be fetched then we 
couldn't inject dependencies to non-bean objects
Line 17:             throw new RuntimeException("Couldn't locate a BeanManager 
instance due to " + e.getMessage()
Line 18:                     + " Actions will fail to perform due to runtime 
missing dependencies");


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7f604ff91847b698efe84a09f724ba0492a672c1
Gerrit-PatchSet: 12
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Asaf Shakarchi <a...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Liran Zelkha <liran.zel...@gmail.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkole...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Roy Golan <rgo...@redhat.com>
Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: mooli tayer <mta...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to