Major
Nice to have
Bugfix
Major
Enhancement
ViewConfiguration is a factory for a view (special case of HTMLFragment) in the context of a component. The API design is cumbersome, because the view creation happens in two steps: First generate, then fetch result of generation. This inevitably makes implementations stateful and not sharable between sessions.
Analysis (retrospective)
The refactoring fixes a memory hole at the same time, which can be used to reference an old session from the configuration (see MaintenanceViewConfiguration#view).
Improvement
From
#!java void initView(LayoutComponent aComponent); View getConfiguredView();
becomes
#!java HTMLFragment createView(LayoutComponent component);
Code migration
- Adaptation of derivations according to above change.
- Various API's in the environment have been generalized from View to HTMLFragment. If the isVisible() state is needed, Fragments.isVisible(HTMLFragment) can be used.
Test
No additional test.