Skip to main content



      Home
Home » Archived » Riena » Riena on server-side with DI
Riena on server-side with DI [message #531529] Wed, 05 May 2010 06:43 Go to next message
Eclipse UserFriend
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 #531607 is a reply to message #531529] Wed, 05 May 2010 10:18 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Riena on server-side with DI [message #585332 is a reply to message #531529] Wed, 05 May 2010 10:18 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Riena on server-side with DI
Next Topic:How Can I Remove / Modify Riena Logo?
Goto Forum:
  


Current Time: Tue Jul 08 17:48:14 EDT 2025

Powered by FUDForum. Page generated in 0.23670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top