Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364231 - Need ability to use Sapphire EL for derived value properties
Summary: Need ability to use Sapphire EL for derived value properties
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-11-19 17:42 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2011-11-19 17:42:13 EST
The current support for derived properties uses @Derived annotation (no attributes) and requires the adopter to implement DerivedValueService. While having the option to implement DerivedValueService is good, many common derived property usecases can be solved simpler by using Sapphire EL. To this end, we should add "expr" attribute to @Derived annotation along with the appropriate logic in the framework to synthesize a DerivedValueService based on the expression.
Comment 1 Konstantin Komissarchik CLA 2011-11-20 22:48:52 EST
Added @Derived.text attribute with support for Sapphire EL.
Comment 2 Shenxue Zhou CLA 2011-11-28 17:03:24 EST
Verified with Purchase Order's Subtotal property.