Provides a simple implementation of StateManager that can be
subclassed by developers wishing to provide specialized behavior to an existing StateManager instance. The
default implementation of all methods is to call through to the wrapped StateManager.
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped to
access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private StateManager |
| Access | Constructor and Description |
|---|---|
| public | StateManagerWrapper(StateManager
The implementation being wrapped. wrapped)If this state manager has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getViewState(FacesContext
FacesContext for the current requestOverrides jakarta.
The default behavior of this method is to call |
| public StateManager | getWrapped()
Implements jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| public boolean | isSavingStateInClient(FacesContext
the Faces context. context)Overrides jakarta.
The default behavior of this method is to call
|
| public void | writeState(FacesContext
FacesContext for the current requestthe state to be written state)Overrides jakarta.
The default behavior of this method is to call
|
| wrapped | back to summary |
|---|---|
| private StateManager wrapped | |
| StateManagerWrapper | back to summary |
|---|---|
| public StateManagerWrapper(StateManager wrapped)
If this state manager has been decorated, the implementation doing the decorating should push the implementation
being wrapped to this constructor. The
| |
| getViewState | back to summary |
|---|---|
| public String getViewState(FacesContext context) Overrides jakarta.
The default behavior of this method is to call
| |
| getWrapped | back to summary |
|---|---|
| public StateManager getWrapped() Implements jakarta. Doc from jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped.
| |
| isSavingStateInClient | back to summary |
|---|---|
| public boolean isSavingStateInClient(FacesContext context) Overrides jakarta.
The default behavior of this method is to call
| |
| writeState | back to summary |
|---|---|
| public void writeState(FacesContext context, Object state) throws IOException Overrides jakarta.
The default behavior of this method is to call
| |