diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcView.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcView.java index 56c5a2eb..6dbcc866 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcView.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcView.java @@ -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(); diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcViewFactory.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcViewFactory.java index fb0c6f29..77845d48 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcViewFactory.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/AbstractMvcViewFactory.java @@ -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); } \ No newline at end of file