|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WizardMementoConverter
This interface is for controllers to allow Wizards to be transformed between usable wizards and opaque serializable objects that are meant to be as 'slim' as possible. Ex:
request.getSession().setPersistentAttribute("MyWizardKey", mementoConverter.toMomento(myWizard));
and
//Cast to serializable is necessary because session says it needs objects,
//even though it really needs Serializable.
Wizard myWizard = myMementoConverter.fromMemento((Serializable)request.getSession().getPersistentAttribute("MyWizardKey"));
Method Summary | |
---|---|
Wizard |
fromMemento(Serializable previouslyExternalized)
Re-fleshes out the wizard into usable forms. |
Serializable |
toMemento(Wizard target)
Breaks the wizard down into minimal component state parts that can be stored in the session or client. |
Method Detail |
---|
Serializable toMemento(Wizard target) throws WizardException
target
- Wizard the wizard being 'dehydrated'
WizardException
Wizard fromMemento(Serializable previouslyExternalized) throws WizardException
previouslyExternalized
- Serializable
WizardException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |