Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
5.4
-
None
Description
It would be nice to by able to define, as a service contribution, a function that could be referenced inside a property expression. This could be used for frequent operations such as sorting a collection, or defaulting null values.
It's a bit tricky, since the property expression language is generics aware; the function provided (possibly: a static method on a class) would also need to support generics.
Currently, this can be done in Java code, but it either leads to heavy base classes (providing utility methods) or some ugly repetition.