Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 28304 invoked from network); 10 Jun 2010 21:59:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 21:59:40 -0000 Received: (qmail 4304 invoked by uid 500); 10 Jun 2010 21:59:40 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 4277 invoked by uid 500); 10 Jun 2010 21:59:40 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 4269 invoked by uid 99); 10 Jun 2010 21:59:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 21:59:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 21:59:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5ALxFrf005164 for ; Thu, 10 Jun 2010 21:59:16 GMT Message-ID: <4999873.32531276207155930.JavaMail.jira@thor> Date: Thu, 10 Jun 2010 17:59:15 -0400 (EDT) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Created: (CAY-1445) Switch QueryCacheFactory to depenency injection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Switch QueryCacheFactory to depenency injection ----------------------------------------------- Key: CAY-1445 URL: https://issues.apache.org/jira/browse/CAY-1445 Project: Cayenne Issue Type: Task Affects Versions: 3.1M1 Reporter: Andrus Adamchik Assignee: Andrus Adamchik Fix For: 3.1M1 Currently DataContext/BaseContext are trying to guess their QueryCache from the parent or instantiate the default. We should start using the injection for that. Since injection mechanism is not configured in ROP yet, this implementation will do the following: 1. Do QueryCache injection at the BaseContext (superclass) level. 2. Remove custom loading code from DataContext 3. Move BaseContext custom loading code to CayenneContext 4. In the factory implementation wrap the underlying cache in NestedQueryCache for ObjectContexts (and for shared cache?) instead of instantiating a new cache for each child context. This would allow centralized cache groups management -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.