Riena was designed for enterprise applications with many views. To handle all these views Riena has some special concepts: Navigation Model, Shared Views, etc.. To avoid that the start of the application is to slow and needs a lot of resources, the controller and the view of a sub-module is only created when a sub-module is activated. In some cases this behavior have some disadvantages, because the sub-module, controller and model are not bound, yet. Without binding error and mandatory markers can't display in the navigation tree. If you need these information, you can define that a sub-module can be created, when the navigation model is created. Riena supports the feature the version 2.0, it is called "preparation". The Riena application developer can enforce the preparation of sub-modules in three different ways:
- The element submodule of the extension point "org.eclipse.riena.navigation.assemblies" has an additional attribute: requiresPreparation.
- IWorkareaDefinition has the additional property requiresPreparation.
- NavigationArgument, which is (for example) used in the method navigate of the class INavigationNode, has the additional property prepareAll.
The creation of a sub-module controller wasn't possible without the creation of the sub-module view. Because the method configureRidgets of the controller expects that the Ridgets are already injected and Ridget injection without a view is not possible. This prerequisite is not necessary with Riena 4.0. The preparation of a sub-module only creates the controller and bound it with the model. The according view will be created, when the sub-module is activated. This allows the developer to find a well-balanced compromise between user support (e.g. markers) and performance/consumption of resources.