Utility class to enable partial state saving of Lists of attached objects such as FacesListeners or
Validators.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv T[] | |
| public void | clearInitialState()
Implements jakarta. Reset the PartialStateHolder to a non-delta tracking state. |
| public boolean | initialStateMarked()
Implements jakarta.
Return |
| public boolean | isTransient()
Implements jakarta. If true, the Object implementing this interface must not participate in state saving or restoring. |
| pack-priv Iterator | |
| public void | markInitialState()
Implements jakarta.
The runtime must ensure that the |
| pack-priv void | |
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Implements jakarta. Perform any processing required to restore the state from the entries in the state Object. |
| public Object | saveState(FacesContext
the Faces context. context)Implements jakarta.
Gets the state of the instance as a |
| public void | setTransient(boolean
boolean pass newTransientValue)true if this Object will
not participate in state saving or restoring, otherwise pass false.Implements jakarta. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. |
| attachedObjects | back to summary |
|---|---|
| private List<T> attachedObjects | |
| initialState | back to summary |
|---|---|
| private boolean initialState | |
| AttachedObjectListHolder | back to summary |
|---|---|
| pack-priv AttachedObjectListHolder() | |
| add | back to summary |
|---|---|
| pack-priv void add(T attachedObject) | |
| asArray | back to summary |
|---|---|
| pack-priv T[] asArray(Class<T> type) | |
| clearInitialState | back to summary |
|---|---|
| public void clearInitialState() Implements jakarta. Doc from jakarta. Reset the PartialStateHolder to a non-delta tracking state.
| |
| initialStateMarked | back to summary |
|---|---|
| public boolean initialStateMarked() Implements jakarta. Doc from jakarta.
Return
| |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements jakarta. Doc from jakarta. If true, the Object implementing this interface must not participate in state saving or restoring.
| |
| iterator | back to summary |
|---|---|
| pack-priv Iterator | |
| markInitialState | back to summary |
|---|---|
| public void markInitialState() Implements jakarta. Doc from jakarta.
The runtime must ensure that the
| |
| remove | back to summary |
|---|---|
| pack-priv void remove(T attachedObject) | |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Implements jakarta. Doc from jakarta. Perform any processing required to restore the state from the entries in the state Object.
If the class that implements this interface has references to instances that also implement StateHolder (such as a
If the
| |
| saveState | back to summary |
|---|---|
| public Object saveState(FacesContext context) Implements jakarta. Doc from jakarta.
Gets the state of the instance as a
If the class that implements this interface has references to instances that implement StateHolder (such as a
This method must not alter the state of the implementing object. In other words, after executing this code:
The return from this method must be
| |
| setTransient | back to summary |
|---|---|
| public void setTransient(boolean newTransientValue) Implements jakarta. Doc from jakarta. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.
| |