Define a Map-like contract
that makes it easier for components to implement TransientStateHolder. Each UIComponent in the view will
return an implementation of this interface from its UIComponent#getTransientStateHelper method.
The values retrieved or saved through getTransient or putTransient will not be
preserved between requests.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the stored value.the key for which the value should be returned. key)Return the value currently
associated with the specified |
| public Object | Returns: the stored value.the key for which the value should be returned. key, Object the value to return if no value is found in
the call to defaultValue)get().Performs the same logic as |
| public Object | Returns: the previously stored valuethe key for the value key, Object the value value)Return the previously stored value and store the specified key/value pair. |
| getTransient | back to summary |
|---|---|
| public Object getTransient(Object key) Return the value currently
associated with the specified | |
| getTransient | back to summary |
|---|---|
| public Object getTransient(Object key, Object defaultValue) Performs the same logic as | |
| putTransient | back to summary |
|---|---|
| public Object putTransient(Object key, Object value) Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. | |