Change in ovirt-engine[master]: core: CDI workaournd jboss 7.1.1 bug

rgolan at redhat.com rgolan at redhat.com
Tue Jun 24 06:10:24 UTC 2014


Roy Golan has submitted this change and it was merged.

Change subject: core: CDI workaournd jboss 7.1.1 bug
......................................................................


core: CDI workaournd jboss 7.1.1 bug

To workaround jboss 7.1.1 bug the Injector bean must be moved to BLL
module so it will be injected into Backend.java and initialize on
startup.

Till master will support wildfly or at least jboss version EAP 6.x or
greater CDI beans can't be detected across modules.

To overcome that one must create a producer method and put it under
BllCDIAdapter and there to create or use a getInstance incase its a
singleton

Change-Id: If996ccbce18fcc5471acff49f5bef8c70269e0aa
Signed-off-by: Roy Golan <rgolan at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/Backend.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandsFactory.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/BllCDIAdapter.java
R backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/Injector.java
4 files changed, 4 insertions(+), 5 deletions(-)

Approvals:
  Alon Bar-Lev: Looks good to me, but someone else must approve
  Roy Golan: Verified
  Liran Zelkha: Looks good to me, but someone else must approve
  Yair Zaslavsky: Looks good to me, approved
  Oved Ourfali: Looks good to me, but someone else must approve



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

Gerrit-MessageType: merged
Gerrit-Change-Id: If996ccbce18fcc5471acff49f5bef8c70269e0aa
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list