A View Pool is a set of initialized views that are kept ready to use. The idea is reset and reuse views taking advantage of existing JSF 2.0 Partial State Saving algorithm with some small additions to component's saveState() method.
This technique works by these reasons:
The implementation proposed uses a lock free view pool structure with soft or weak references. The lock free view pool ensures fast access and the soft or weak references ensured the garbage collection algorithm is not affected by the view pool.
@author Leonardo Uribe
|
|
|
|