You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2011/01/30 02:33:44 UTC

[jira] Updated: (CAY-1445) Initialize QueryCache via dependency injection

     [ https://issues.apache.org/jira/browse/CAY-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik updated CAY-1445:
---------------------------------

    Component/s: Modeler
                 Core Library
    Description: Currently DataContext/BaseContext are trying to guess their QueryCache from the parent or instantiate the default. We should start using the injection for that. This will result in a pretty serious refactoring namely in QueryCacheFactory interface going away, replaced with a corresponding Provider<QueryCache>.    (was: 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)
        Summary: Initialize QueryCache via dependency injection  (was: Switch QueryCacheFactory to dependency injection)

> Initialize QueryCache via dependency injection
> ----------------------------------------------
>
>                 Key: CAY-1445
>                 URL: https://issues.apache.org/jira/browse/CAY-1445
>             Project: Cayenne
>          Issue Type: Task
>          Components: Core Library, Modeler
>    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. This will result in a pretty serious refactoring namely in QueryCacheFactory interface going away, replaced with a corresponding Provider<QueryCache>.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.