Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034566 | Openbravo ERP | A. Platform | public | 2016-11-17 16:20 | 2019-07-30 10:01 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q1 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034566: Classes implementing Process interface can not use CDI automatically |
Description | Those classes that implement the org.openbravo.scheduling.Process interface can not use CDI automatically: tt is not possible to inject elements because they are instantiated in a non-Weld way[1].
[1] https://code.openbravo.com/erp/devel/pi/file/addd2c050ac7/src/org/openbravo/scheduling/ProcessRunner.java#l58 [^]
|
Steps To Reproduce | In description |
Proposed Solution | Instantiate classes implementing Process using weld, in a similar way to what it is done for action handler based processes.
Attached a proposed solution to be tested in deep.
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0035584 | | closed | platform | It is not possible to use Dependency Injection using Weld in background DalBaseProcess | related to | defect | 0034567 | | closed | Triage Omni WMS | InventoryCountProcess does not support dependency injection | related to | design defect | 0034174 | | new | guillermogil | Allow to use Weld on Background processes that extend from DalBaseProcess | related to | design defect | 0041479 | | new | caristu | Classes implementing WebService interface can not use CDI automatically |
|
Attached Files | 34566.diff (742) 2016-11-17 16:21 https://issues.openbravo.com/file_download.php?file_id=10064&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-11-17 16:20 | caristu | New Issue | |
2016-11-17 16:20 | caristu | Assigned To | => platform |
2016-11-17 16:20 | caristu | Modules | => Core |
2016-11-17 16:20 | caristu | Triggers an Emergency Pack | => No |
2016-11-17 16:21 | caristu | File Added: 34566.diff | |
2016-11-17 16:22 | caristu | Proposed Solution updated | |
2016-11-17 16:30 | JONHM | Relationship added | related to 0034567 |
2016-11-25 14:10 | hgbot | Checkin | |
2016-11-25 14:10 | hgbot | Note Added: 0091845 | |
2016-11-25 14:10 | hgbot | Status | new => resolved |
2016-11-25 14:10 | hgbot | Resolution | open => fixed |
2016-11-25 14:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4d1741a4d62dba5c0bed9ca3cf6dbce8f69c46c1 [^] |
2016-11-25 14:11 | caristu | Review Assigned To | => alostale |
2016-12-12 09:00 | caristu | Assigned To | platform => caristu |
2016-12-13 10:58 | hgbot | Checkin | |
2016-12-13 10:58 | hgbot | Note Added: 0092303 | |
2016-12-13 11:01 | alostale | Note Added: 0092304 | |
2016-12-13 11:01 | alostale | Status | resolved => closed |
2016-12-13 11:01 | alostale | Fixed in Version | => 3.0PR17Q1 |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092662 | |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092701 | |
2017-03-27 08:52 | dmiguelez | Relationship added | has duplicate 0035584 |
2017-03-28 09:37 | caristu | Relationship deleted | has duplicate 0035584 |
2017-03-28 09:38 | caristu | Relationship added | related to 0035584 |
2017-10-11 18:54 | caristu | Relationship added | related to 0034174 |
2019-07-30 10:01 | caristu | Issue cloned | 0041479 |
2019-07-30 10:01 | caristu | Relationship added | related to 0041479 |
Notes |
|
(0091845)
|
hgbot
|
2016-11-25 14:10
|
|
Repository: erp/devel/pi
Changeset: 4d1741a4d62dba5c0bed9ca3cf6dbce8f69c46c1
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Nov 25 14:05:04 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4d1741a4d62dba5c0bed9ca3cf6dbce8f69c46c1 [^]
fixes issue 34566: Classes implementing Process can not use CDI automatically
Now classes implementing org.openbravo.scheduling.Process interface are instantiated using Weld. This allows the usage of CDI with them.
---
M modules/org.openbravo.base.weld/src/META-INF/beans.xml
M src-test/src/org/openbravo/test/scheduling/ProcessSchedulingTest.java
M src/org/openbravo/scheduling/ProcessRunner.java
---
|
|
|
(0092303)
|
hgbot
|
2016-12-13 10:58
|
|
|
|
|
Code reviewed
Added test case to cover this functionallity |
|
|
|
|
|
|
|