Package com.sun.faces.application.view
Class ViewHandlingStrategyManager
- java.lang.Object
-
- com.sun.faces.application.view.ViewHandlingStrategyManager
-
public class ViewHandlingStrategyManager extends Object
Interface for working with multipleViewHandlingStrategyimplementations.
-
-
Constructor Summary
Constructors Constructor Description ViewHandlingStrategyManager()By default the strategies available (in order) will beFaceletViewHandlingStrategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewHandlingStrategygetStrategy(String viewId)Iterate through the availableViewHandlingStrategyimplementations.ViewHandlingStrategy[]getViewHandlingStrategies()voidsetViewHandlingStrategies(ViewHandlingStrategy[] stratagies)Update theViewHandlingStrategyimplementations to be applied when processing Faces requests.
-
-
-
Constructor Detail
-
ViewHandlingStrategyManager
public ViewHandlingStrategyManager()
By default the strategies available (in order) will beFaceletViewHandlingStrategy.
-
-
Method Detail
-
getStrategy
public ViewHandlingStrategy getStrategy(String viewId)
Iterate through the available
ViewHandlingStrategyimplementations. The first one to return true fromViewHandlingStrategy.handlesViewId(String)will be theViewHandlingStrategyreturned.- Parameters:
viewId- the viewId to match aViewHandlingStrategyto- Returns:
- a
ViewHandlingStrategyfor the specifedviewId - Throws:
ViewHandlingStrategyNotFoundException- if no match is found.
-
getViewHandlingStrategies
public ViewHandlingStrategy[] getViewHandlingStrategies()
- Returns:
- the currently registered
ViewHandlingStrategyimplementations.
-
setViewHandlingStrategies
public void setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
Update theViewHandlingStrategyimplementations to be applied when processing Faces requests.- Parameters:
stratagies- the new view handling strategies
-
-