This commit is contained in:
Keith Donald
2008-04-25 02:01:09 +00:00
parent a3b8d2fae7
commit e31f5e9ef8
2 changed files with 11 additions and 1 deletions

View File

@@ -925,7 +925,10 @@ public class FlowModelFlowBuilder extends AbstractFlowBuilder {
try {
return resource.createRelative(location);
} catch (IOException e) {
throw new RuntimeException(e);
IllegalArgumentException iae = new IllegalArgumentException(
"Unable to access a flow relative resource at location '" + location + "'");
iae.initCause(e);
throw iae;
}
}
}

View File

@@ -26,5 +26,12 @@ import org.springframework.webflow.execution.RequestContext;
* @see ViewResolver
*/
public interface FlowViewResolver {
/**
* Resolve the Spring MVC view with the provided id.
* @param viewId the view id, typically treated as a Spring MVC view name
* @param context the currently executing flow
* @return the resolved Spring MVC view
*/
public View resolveView(String viewId, RequestContext context);
}