From 2ccb985063bec09a72f23f164b131b41d4bcd729 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 14 Nov 2008 04:55:36 +0000 Subject: [PATCH] polish --- .../springframework/webflow/mvc/view/AbstractMvcView.java | 4 ++++ .../webflow/mvc/view/AbstractMvcViewFactory.java | 6 ++++++ 2 files changed, 10 insertions(+) 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