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 javax. Reset the PartialStateHolder to a non-delta tracking state. |
| public boolean | initialStateMarked()
Implements javax.
Return |
| public boolean | isTransient()
Implements javax. If true, the Object implementing this interface must not participate in state saving or restoring. |
| pack-priv Iterator | |
| public void | markInitialState()
Implements javax.
The runtime must ensure that the |
| pack-priv void | |
| public void | restoreState(FacesContext
the Faces context. context, Object the state. state)Implements javax. Perform any processing required to restore the state from the entries in the state Object. |
| public Object | saveState(FacesContext
the Faces context. context)Implements javax. 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 javax. 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 javax. Doc from javax. Reset the PartialStateHolder to a non-delta tracking state.
| |
| initialStateMarked | back to summary |
|---|---|
| public boolean initialStateMarked() Implements javax. Doc from javax.
Return
| |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements javax. Doc from javax. 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 javax. Doc from javax.
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 javax. Doc from javax. 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 javax. Doc from javax. 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 javax. Doc from javax. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.
| |