In addition, an optional Application view cache is supported. This view cache will, when enabled, perform special caching of all state for non-postback requests (that is, the initial state of all pages). For all pages, their SerializedView state is stored in a Map at application scope, and reused across all users. This simultaneously eliminates the expense of saving the state at all (except for the first request for any page), and significantly reduces memory usage as long as users are largely viewing initial pages only.
In addition, because the viewId is sufficient to identify the page state out of the cache, the token can be completely constant across requests and users. This makes it possible to cache the page content (which is not possible otherwise).
Since application scope objects do not support failover, a mirror of the cache is saved at session scope. The mirror is an LRU map of the last 16 application-scoped entries, but since it stores precisely the same SerializedView instances as the application scope, the additional memory requirements are minimal.
@version $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/application/StateManagerImpl.java#2 $) $Date: 18-nov-2005.16:12:04 $ @author The Oracle ADF Faces Team
|
|
|
|
|
|