java.lang.Object
com.sun.faces.application.view.ViewHandlingStrategyManager
Interface for working with multiple
ViewHandlingStrategy
implementations.-
Constructor Summary
ConstructorDescriptionBy default the strategies available (in order) will beFaceletViewHandlingStrategy
. -
Method Summary
Modifier and TypeMethodDescriptiongetStrategy
(String viewId) Iterate through the availableViewHandlingStrategy
implementations.void
setViewHandlingStrategies
(ViewHandlingStrategy[] stratagies) Update theViewHandlingStrategy
implementations 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
ViewHandlingStrategy
implementations. The first one to return true fromViewHandlingStrategy.handlesViewId(String)
will be theViewHandlingStrategy
returned.- Parameters:
viewId
- the viewId to match aViewHandlingStrategy
to- Returns:
- a
ViewHandlingStrategy
for the specifedviewId
- Throws:
ViewHandlingStrategyNotFoundException
- if no match is found.
-
getViewHandlingStrategies
- Returns:
- the currently registered
ViewHandlingStrategy
implementations.
-
setViewHandlingStrategies
Update theViewHandlingStrategy
implementations to be applied when processing Faces requests.- Parameters:
stratagies
- the new view handling strategies
-