org.codehaus.waffle.view
Interface ViewResolver

All Known Implementing Classes:
DefaultViewResolver

public interface ViewResolver

The view resolver determines the path the next view. The view resolver allows the configuration of view properties. Every implementation should hold default values for the properties configurable via init-params in the web.xml:

as well as any optional mapping between controller names and view names.

Author:
Michael Ward, Mauro Talevi
See Also:
DefaultViewResolver

Method Summary
 void configureView(java.lang.String key, java.lang.String value)
          Configures the resolution of a single view
 void configureViews(java.util.Properties viewProperties)
          Configures the resolution of multiple views
 java.lang.String resolve(View view)
          Resolves the view by return the path to the next view
 

Method Detail

resolve

java.lang.String resolve(View view)
Resolves the view by return the path to the next view

Parameters:
view - the View
Returns:
The path to the next View.

configureView

void configureView(java.lang.String key,
                   java.lang.String value)
Configures the resolution of a single view

Parameters:
key - the view key
value - the view value

configureViews

void configureViews(java.util.Properties viewProperties)
Configures the resolution of multiple views

Parameters:
viewProperties - the view Properties


Copyright © 2008. All Rights Reserved.