Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040066
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2019-01-30 12:572019-02-01 10:12
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040066: API Change: EntityPersistenceEventObserver declared as an @ApplicationScoped bean

DescriptionThe fix for issue 0040046 declares the EntityPersistenceEventObserver class as an @ApplicationScoped bean. This is done because having no annotation, classes extending this one are @Dependent by default, which means than on every write operation done with DAL (save, update, delete) a new instance of every EntityPersistenceEventObserver listening to any of those operations is created.

This is an API change because by default now there only will be one instance of every class extending EntityPersistenceEventObserver (unless the scope would be overridden in the subclass).

Besides, after this API change, event handlers should be proxyable objects for WELD by default. Proxyable classes are those classes which are not final and does not contain any final methods.

For this reason, if an @ApplicationScoped event handler is defined as final or with a final method, the following exception will be thrown on server startup: "org.jboss.weld.exceptions.UnproxyableResolutionException: WELD-001437 Normal scoped bean class is not proxyable because the type is final or it contains a final method"

Note that it is still possible to define event handlers as Dependent by explicitly using the @Dependent annotation. In that case it is not required to define the event handler as a proxyable class.
Steps To ReproduceN/A
TagsApproved
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0040046 closedcaristu unnecessary objects are created every time any DAL object is created/updated/deleted 

-  Notes
(0109414)
caristu (developer)
2019-02-01 10:12
edited on: 2019-02-01 10:12

Functional/Behavior change. No additional changes in the API definition are required.


- Issue History
Date Modified Username Field Change
2019-01-30 12:57 caristu New Issue
2019-01-30 12:57 caristu Assigned To => caristu
2019-01-30 12:57 caristu Modules => Core
2019-01-30 12:57 caristu Triggers an Emergency Pack => No
2019-01-30 12:57 caristu Issue generated from 0040046
2019-01-30 12:57 caristu Relationship added related to 0040046
2019-01-30 14:04 alostale Tag Attached: Approved
2019-02-01 09:57 caristu Description Updated View Revisions
2019-02-01 09:58 caristu Description Updated View Revisions
2019-02-01 10:01 caristu Description Updated View Revisions
2019-02-01 10:09 caristu Status new => scheduled
2019-02-01 10:12 caristu Review Assigned To => caristu
2019-02-01 10:12 caristu Note Added: 0109414
2019-02-01 10:12 caristu Status scheduled => closed
2019-02-01 10:12 caristu Resolution open => no change required
2019-02-01 10:12 caristu Note Edited: 0109414 View Revisions


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker