myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Blake Sullivan (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TRINIDAD-2273) Allow scheme for application to control UIViewRoot caching logic
Date Tue, 12 Jun 2012 03:50:44 GMT
Blake Sullivan created TRINIDAD-2273:
----------------------------------------

             Summary: Allow scheme for application to control UIViewRoot caching logic
                 Key: TRINIDAD-2273
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2273
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.1-core,  1.2.12-core
         Environment: all
            Reporter: Blake Sullivan


When UIViewRoot caching is enabled, the cached UIViewRoots can consume considerable memory
across all of the users.  The proposal is to extend the allowed values of the Servlet Initialization
parameter:
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>

to support, in addition to the current "true", and "false" values, the values of:
"strong" UIViewRoot caching is enabled and always uses strong references to the cached UIViewRoot
"soft" UIViewRoot caching is enabled and always uses soft references to the cached UIViewRoot,
allowing the cached UIViewRoots to be purged if under memory pressure
<classname> The fully qualified classname of an implementation of org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory
returning any desired PseudoReference implementation.

In addition, the value of "true" now uses the value of a PseudoReferenceFactory implementation
registered under the service name "org.apache.myfaces.trinidad.CACHE_VIEW_ROOT" if one is
registered, otherwise, it uses a strong reference, to duplicate the current functionality

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message