Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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
Stefan   is currently offline Stefan
Messages: 316
Registered: July 2009
Senior Member
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
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
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
Stefan Liebig is currently offline Stefan Liebig
Messages: 124
Registered: July 2009
Senior Member
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: Thu Jul 31 13:51:22 EDT 2014

Powered by FUDForum. Page generated in 0.02847 seconds