[ https://issues.apache.org/jira/browse/TAP5-2756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17742265#comment-17742265 ]
Hudson commented on TAP5-2756: ------------------------------ SUCCESS: Integrated in Jenkins build Tapestry ยป tapestry-java-8-freestyle #23 (See [https://ci-builds.apache.org/job/Tapestry/job/tapestry-java-8-freestyle/23/]) TAP5-2756: adding ReferenceType.forPages(String...) (thiago: rev d6c4324215337b3bfb9ed8e62dd7174e0427410d) * (edit) tapestry-core/src/main/java/org/apache/tapestry5/services/pageload/ReferenceType.java * (add) tapestry-core/src/test/java/org/apache/tapestry5/services/ReferenceTypeTest.java * (edit) tapestry-core/src/main/java/org/apache/tapestry5/services/pageload/PageCachingReferenceTypeService.java > Allow developers define whether a page should be cached as a soft reference > or not > ---------------------------------------------------------------------------------- > > Key: TAP5-2756 > URL: https://issues.apache.org/jira/browse/TAP5-2756 > Project: Tapestry 5 > Issue Type: Improvement > Components: tapestry-core > Reporter: Thiago Henrique De Paula Figueiredo > Assignee: Thiago Henrique De Paula Figueiredo > Priority: Minor > Fix For: 5.8.3 > > > This ticket is the result of a discussion on the Tapestry mailing list about > the consequences of caching page instances using soft references instead of > regular ones: > https://lists.apache.org/thread/5qbyg0mfscg9qj6jho9899rh4r0kz97z. The goal > here is to allow the developer to define which pages should be cached as soft > references (the default) or regular ones. > Usage example > public static void contributePageCachingReferenceTypeService( > OrderedConfiguration<PageCachingReferenceTypeService> configuration) { > configuration.add("VeryLarge", p -> p.equals("VeryLarge") ? > ReferenceType.STRONG : null); > } > This would cause the page named VeryLarge to be cached using a > regular, strong, non-garbage-collectable reference while leaving all > other pages cached with a soft, garbage-collectable reference. -- This message was sent by Atlassian Jira (v8.20.10#820010)