I wrote a framework in Guvnor that others can hopefully use to write their own Wizards. Other developers can write their own Wizards by implementing only the following requirements:-
- Extend AbstractWizard. AbstractWizard is the base-class for the whole Wizard.
- Write a series of Wizard pages implementing WizardPage. WizardPage is an interface for a single page of the whole Wizard.
- Write a Wizard context implementing WizardContext. WizardContext is used in conjunction with WizardPlace by MVP to launch the correct Wizard.
- AmendWizardFactoryImpl to return an instance of your Wizard depending upon the WizardContext. WizardFactoryImpl is used to create an instance of the correct Wizard based upon the WizardContext. The framework is not meant for run-time extension and hence reflection has not been used.
As always, a video of operation, is available here.
Now I have this in place I can carry on writing the required Wizard :)