I started working on it. Here is what passes for the documentation now :-) -

http://people.apache.org/~aadamchik/misc/cayenne-guide-08302011.pdf

The PDF only has a few chapters finished, but those are the chapters dealing 
with DI, custom modules and other configuration.

Andrus

On Sep 8, 2011, at 10:18 AM, Gary Jarrel wrote:

> 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 <[email protected]> 
> 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
>>> 
>> 
>> 
> 

Reply via email to