I didn't have clear understanding of what runtime or module is. Thank you for
your reply.
From: Andrus Adamchik
To: user@cayenne.apache.org
Sent: Tuesday, March 8, 2011 1:30 PM
Subject: Re: DI example
On Mar 8, 2011, at 1:13 PM, Erdinc wrote:
> You mean in order to use DI you shou
On Mar 8, 2011, at 1:30 PM, Andrus Adamchik wrote:
> http://cayenne.apache.org/doc/guide-to-31-features.html#Guideto3.1Features-LifecycleExtensions
>
Actually the link fragment is wrong. Just got to
http://cayenne.apache.org/doc/guide-to-31-features.html and check "Lifecycle
Listener Annotat
On Mar 8, 2011, at 1:13 PM, Erdinc wrote:
> You mean in order to use DI you should add a custom runtime class extending
> CayenneRuntime.
No. Quite the contrary. There shouldn't be a need to extend CayenneRuntime (or
ServerRuntime for that matter). If you need to add new "services" or override
:49 PM
Subject: Re: DI example
Hi,
Actually if you don't want to extend Cayenne, you shouldn't even care about DI.
Once you obtain an ObjectContext, you use it as before.
If you do need to extend/configure Cayenne, then you'll create a custom module
and pass it to ServerRuntime
Hi,
Actually if you don't want to extend Cayenne, you shouldn't even care about DI.
Once you obtain an ObjectContext, you use it as before.
If you do need to extend/configure Cayenne, then you'll create a custom module
and pass it to ServerRuntime in constructor. If you have a specific scenar