Top Description Fields Constructors Methods
com.sun.faces.application.view

public Class ViewHandlingStrategyManager

extends Object
Class Inheritance
Static Imports
com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler, .WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandlerDeprecated

Interface for working with multiple com.sun.faces.application.view.ViewHandlingStrategy implementations.

Field Summary

Modifier and TypeField and Description
private volatile ViewHandlingStrategy[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ViewHandlingStrategy

Returns:

a com.sun.faces.application.view.ViewHandlingStrategy for the specifed viewId
getStrategy
(String viewId)

Iterate through the available com.sun.faces.application.view.ViewHandlingStrategy implementations.

public ViewHandlingStrategy[]

Returns:

the currently registered com.sun.faces.application.view.ViewHandlingStrategy implementations.
getViewHandlingStrategies
()

public synchronized void
setViewHandlingStrategies(ViewHandlingStrategy[]
the new view handling strategies
stratagies
)

Update the com.sun.faces.application.view.ViewHandlingStrategy implementations to be applied when processing JSF requests.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

strategiesback to summary
private volatile ViewHandlingStrategy[] strategies

Constructor Detail

ViewHandlingStrategyManagerback to summary
public ViewHandlingStrategyManager()

Be default, if com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter#DisableFaceletJSFViewHandler isn't enabled, the strategies available (in order) will be FaceletViewHandlingStrategy and com.sun.faces.application.view.JspViewHandlingStrategy.

Otherwise, only the com.sun.faces.application.view.JspViewHandlingStrategy will be available.

Method Detail

getStrategyback to summary
public ViewHandlingStrategy getStrategy(String viewId)

Iterate through the available com.sun.faces.application.view.ViewHandlingStrategy implementations. The first one to return true from com.sun.faces.application.view.ViewHandlingStrategy#handlesViewId(String) will be the com.sun.faces.application.view.ViewHandlingStrategy returned.

Parameters
viewId:String

the viewId to match a com.sun.faces.application.view.ViewHandlingStrategy to

Returns:ViewHandlingStrategy

a com.sun.faces.application.view.ViewHandlingStrategy for the specifed viewId

Exceptions
ViewHandlingStrategyNotFoundException:
if no match is found.
getViewHandlingStrategiesback to summary
public ViewHandlingStrategy[] getViewHandlingStrategies()
Returns:ViewHandlingStrategy[]

the currently registered com.sun.faces.application.view.ViewHandlingStrategy implementations.

setViewHandlingStrategiesback to summary
public synchronized void setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)

Update the com.sun.faces.application.view.ViewHandlingStrategy implementations to be applied when processing JSF requests.

Parameters
stratagies:ViewHandlingStrategy[]

the new view handling strategies