This commit is contained in:
Keith Donald
2008-11-14 04:55:36 +00:00
parent d790c2b6f2
commit 2ccb985063
2 changed files with 10 additions and 0 deletions

View File

@@ -289,6 +289,10 @@ public abstract class AbstractMvcView implements View {
// package private
/**
* Restores the internal state of this view from the provided state holder.
* @see AbstractMvcViewFactory#getView(RequestContext)
*/
void restoreState(ViewActionStateHolder stateHolder) {
eventId = stateHolder.getEventId();
mappingResults = stateHolder.getMappingResults();

View File

@@ -91,6 +91,12 @@ public abstract class AbstractMvcViewFactory implements ViewFactory {
return mvcView;
}
/**
* Abstract factory method subclasses should implement to return the concrete MVC view implementation.
* @param view the actual resolved view implementation
* @param context the current request context
* @return the mvc view
*/
protected abstract AbstractMvcView createMvcView(org.springframework.web.servlet.View view, RequestContext context);
}