The plan is to switch to DI completely and remove o.a.c.conf and
o.a.c.project packages. This work is being done right now by Olga and
myself (CAY-1318, CAY-1339, etc.). So there won't be 2 ways to start
Cayenne, only the DI way, and we'll switch the tests once the rest of
the cleanup is done, and we are ready to expose DI-based config to the
end users.
I know this becomes the bottleneck for a number of tasks that could
benefit from DI (logging formatting, query builders, etc.), so are are
trying to get it out ASAP.
Andrus
On Jan 10, 2010, at 2:52 PM, Andrey Razumovsky wrote:
> Andrus,
>
> I see configuration *can* be loaded using IoC-module, thus vars with
>..nject
> annotations are processed. But seems this is not enabled by default
> - at
> least in test stack. I mean, when I try to provide..nject to a
> variable not
> from o.a.c.configuration package it is not injected. Are there plans
> to
> completely switch to loading via CayenneServerModule? Should our
> code always
> support both DI and non-DI loading?
> (i'm asking because using DI can help to get rid of ugly hacks I
> made in
> CAY-1236)
>
> 2009/12/7 Andrus Adamchik (JIRA) <jir..pache.org>
>
>>
>> [
>> https://issues.apache.org/jira/browse/CAY-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>>
>> Andrus Adamchik closed CAY-1319.
>> --------------------------------
>>
>> Resolution: Fixed
>>
>>> Minimal DI container-based configuration to run Cayenne
>>> --------------------------------------------------------
>>>
>>> Key: CAY-1319
>>> URL: https://issues.apache.org/jira/browse/CAY-1319
>>> Project: Cayenne
>>> Issue Type: Task
>>> Components: Cayenne Core Library
>>> Affects Versions: 3.1M1
>>> Reporter: Andrus Adamchik
>>> Assignee: Andrus Adamchik
>>> Fix For: 3.1M1
>>>
>>>
>>> Need to implement loading of Cayenne runtime configuration via a DI
>> mechanism. This will include moving cayenne-di module from sandbox to
>> Cayenne proper and using it to provide access to DataDomain to the
>> applications.
>>> (this is very closely related to CAY-1318, as per CAY-1318 it is
>>> likely
>> that in the future Configuration class will be removed from Cayenne
>> and a
>> replacement needs to be provided)
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>
>
> --
> Andrey
This archive was generated by hypermail 2.0.0 : Sun Jan 10 2010 - 08:22:05 EST