cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Created: (CAY-1445) Switch QueryCacheFactory to depenency injection
Date Thu, 10 Jun 2010 21:59:15 GMT
Switch QueryCacheFactory to depenency injection

                 Key: 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.

View raw message