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

public Class ViewHandlingStrategyManager

extends Object
Class Inheritance
Imports
java.util.Arrays

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
ViewHandlingStrategyManager()

By default the strategies available (in order) will be FaceletViewHandlingStrategy.

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 Faces requests.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

strategiesback to summary
private volatile ViewHandlingStrategy[] strategies

Constructor Detail

ViewHandlingStrategyManagerback to summary
public ViewHandlingStrategyManager()

By default the strategies available (in order) will be FaceletViewHandlingStrategy.

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 Faces requests.

Parameters
stratagies:ViewHandlingStrategy[]

the new view handling strategies