Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0049951Openbravo ERPA. Platformpublic2022-08-04 11:592022-08-05 07:44
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
PR22Q4 
Core
No
0049951: WeldUtils.getInstances with a given selector
WeldUtils provides utilities to work with CDI beans in classes that are not manged by the CDI container.

Although it has a method to obtain all the instances for a given type, it is not possible to prefilter them by a given AnnotationLiteral.
-
No tags attached.
blocks defect 0052178 closed alostale resources (open file descriptors and java threads) leaked on push API 
Issue History
2022-08-04 11:59alostaleNew Issue
2022-08-04 11:59alostaleAssigned To => Triage Platform Base
2022-08-04 11:59alostaleModules => Core
2022-08-04 11:59alostaleTriggers an Emergency Pack => No
2022-08-04 11:59alostaleAssigned ToTriage Platform Base => alostale
2022-08-04 12:33hgbotNote Added: 0139896
2022-08-05 07:41alostaleSummaryWeldUtils.getIstances with a given selector => WeldUtils.getInstances with a given selector
2022-08-05 07:44hgbotNote Added: 0139908
2022-08-05 07:44hgbotResolutionopen => fixed
2022-08-05 07:44hgbotStatusnew => closed
2022-08-05 07:44hgbotFixed in Version => PR22Q4
2022-08-05 07:44hgbotNote Added: 0139909
2023-05-02 08:40alostaleRelationship addedblocks 0052178

Notes
(0139896)
hgbot   
2022-08-04 12:33   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/668 [^]
(0139908)
hgbot   
2022-08-05 07:44   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/668 [^]
(0139909)
hgbot   
2022-08-05 07:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e3f40d4747ec17d10799fd5ba65c587ffe5e4448
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 04-08-2022 12:31:41
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e3f40d4747ec17d10799fd5ba65c587ffe5e4448 [^]

fixes FR-49951: implements WeldUtils.getInstances with selector

WeldUtils.getInstances method has been overloaded to support receving
CDI selectors.

---
M modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java
M modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/QualifiedBean.java
M modules/org.openbravo.base.weld/src/org/openbravo/base/weld/WeldUtils.java
---