cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Jarrel <garyjar...@gmail.com>
Subject Re: Converting a Project 3.1M2
Date Thu, 08 Sep 2011 14:18:37 GMT
Is there any documentation on how to configure the DI?!

I've been reading the upgrade.txt and the new features of 3.1 but
can't seem to piece how it all comes together, too used to
getSharedConfiguration, etc :)

G

On Thu, Sep 8, 2011 at 11:55 PM, Andrus Adamchik <andrus@objectstyle.org> wrote:
> Yes, it has to be defined in a custom DI module. E.g.:
>
>  binder.bind(QueryCache.class).toProvider(OSQueryCacheProvider.class);
>
> In the upcoming M3 this is further refined, but the basic idea is the same.
>
> Andrus
>
> On Sep 8, 2011, at 9:52 AM, Gary Jarrel wrote:
>
>> Hi All,
>>
>> I'm in the process of converting a small project to Cayenne 3.1M2 and
>> also trying to get my head around some of the changes.
>>
>> At one stage I have the Cache Factory setting code:
>>
>> domain.setQueryCacheFactory(new OSQueryCacheFactory());
>>
>> (I know that OSCache is slowly being replaced)
>>
>> But looking at the source of DataDomain the setQueryCacheFactory
>> method does not seem to be there any more?!
>>
>> Is there a new way of doing this?
>>
>> Thank you
>>
>> Gary
>>
>
>

Mime
View raw message