java.lang.Object
com.sun.faces.application.view.ViewHandlingStrategyManager
Interface for working with multiple
ViewHandlingStrategy implementations.-
Constructor Summary
ConstructorsConstructorDescriptionBy default the strategies available (in order) will beFaceletViewHandlingStrategy. -
Method Summary
Modifier and TypeMethodDescriptiongetStrategy(String viewId) Iterate through the availableViewHandlingStrategyimplementations.voidsetViewHandlingStrategies(ViewHandlingStrategy[] stratagies) Update theViewHandlingStrategyimplementations to be applied when processing Faces requests.
-
Constructor Details
-
ViewHandlingStrategyManager
public ViewHandlingStrategyManager()By default the strategies available (in order) will beFaceletViewHandlingStrategy.
-
-
Method Details
-
getStrategy
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
- Returns:
- the currently registered
ViewHandlingStrategyimplementations.
-
setViewHandlingStrategies
Update theViewHandlingStrategyimplementations to be applied when processing Faces requests.- Parameters:
stratagies- the new view handling strategies
-