cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Updated: (CAY-1445) Switch QueryCacheFactory to dependency injection
Date Fri, 11 Jun 2010 16:51:19 GMT


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