-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves support for upcasting lenses (#925)
Introduces a dedicated `Lens`-factory fpr upcasting lenses: `lensForUpcasting` Its inner code will catch `ClassCastException`s, which can occur in nested `Mountpoints`, and throw a dedicated `CollectionLensGetException`. This solution is similar to the handling of false index access or access by keys for collections, we already have integrated. This is necessary due to the fact, that fritz2 does not maintain any sort of `Flow`-hierarchie from the outermost to the innermost renderings. So the framework cannot control the sequence of collecting the involved flows, in order to prevent outdated data or - for this case - *types*. This is a practical compromise, that will work very well for UIs, as the visual appearance is kind of *dictated* by the properties of the underlying type. Co-authored-by: christian.hausknecht <christian.hausknecht@oeffentliche.de>
- Loading branch information
Showing
5 changed files
with
71 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters