com.sun.faces.application.view
public class ViewHandlingStrategyManager extends java.lang.Object
ViewHandlingStrategy
implementations.Modifier and Type | Field and Description |
---|---|
private ViewHandlingStrategy[] |
strategies |
Constructor and Description |
---|
ViewHandlingStrategyManager()
Be default, if
WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will be FaceletViewHandlingStrategy
and JspViewHandlingStrategy . |
Modifier and Type | Method and Description |
---|---|
ViewHandlingStrategy |
getStrategy(java.lang.String viewId)
Iterate through the available
ViewHandlingStrategy
implementations. |
ViewHandlingStrategy[] |
getViewHandlingStrategies() |
void |
setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
Update the
ViewHandlingStrategy implementations
to be applied when processing JSF requests. |
private volatile ViewHandlingStrategy[] strategies
public ViewHandlingStrategyManager()
WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will be FaceletViewHandlingStrategy
and JspViewHandlingStrategy
. Otherwise, only the
JspViewHandlingStrategy
will be available.public ViewHandlingStrategy getStrategy(java.lang.String viewId)
Iterate through the available ViewHandlingStrategy
implementations. The first one to return true from ViewHandlingStrategy.handlesViewId(String)
will be the ViewHandlingStrategy
returned.
viewId
- the viewId to match a ViewHandlingStrategy
toViewHandlingStrategy
for
the specifed viewId
ViewHandlingStrategyNotFoundException
- if no match is found.public ViewHandlingStrategy[] getViewHandlingStrategies()
ViewHandlingStrategy
implementations.public void setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
ViewHandlingStrategy
implementations
to be applied when processing JSF requests.stratagies
- the new view handling strategiesCopyright © 2002-2010 Oracle America, Inc. All Rights Reserved.