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 2010/06/10 23:59:15 UTC

[jira] Created: (CAY-1445) Switch QueryCacheFactory to depenency injection

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.


[jira] Updated: (CAY-1445) Switch QueryCacheFactory to dependency injection

Posted by "Andrus Adamchik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Summary: Switch QueryCacheFactory to dependency injection  (was: Switch QueryCacheFactory to depenency injection)

> Switch QueryCacheFactory to dependency 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.