Riena on server-side with DI [message #531529] |
Wed, 05 May 2010 06:43  |
Eclipse User |
|
|
|
Hi,
anyone using Riena DI on the server side?
I use the Wire class to inject services into beans and wonder how
references to this bean are/can be released?
Is there some kind of unwire method?
As most of the Beans have session scope, waiting for a bundle stop event
is not sufficient.
Thanks & Regards,
Stefan.
|
|
|
|
Re: Riena on server-side with DI [message #585332 is a reply to message #531529] |
Wed, 05 May 2010 10:18  |
Eclipse User |
|
|
|
Hi Stefan,
With the latest version of Riena (I think starting with 2.0M6) the
injectors keep weak references to their targets. Targets are those
objects where services and/or extension gets injected into.
If such targets are ready for garbage collection the injectors will be
notified and they will be stopped, i.e. unwired.
This results in unbind-calls and the removal of listeners into the
service or extension registry.
Does that help?
Tschüß,
Stefan
On 05.05.2010 12:43, Stefan Roeck wrote:
> Hi,
> anyone using Riena DI on the server side?
> I use the Wire class to inject services into beans and wonder how
> references to this bean are/can be released?
> Is there some kind of unwire method?
>
> As most of the Beans have session scope, waiting for a bundle stop event
> is not sufficient.
>
> Thanks & Regards,
> Stefan.
|
|
|
Powered by
FUDForum. Page generated in 0.23670 seconds