Then maybe it should be a request-level component? Or maybe you've
outgrown the mini-IOC services XWork provides :)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anoop Ranganath
Sent: Sunday, December 07, 2003 10:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] releasing a component

I don't think that will necessarily solve the problem.  Disposable will 
allow it to tidy up when XWork ends that session, but it doesn't allow 
me to explicitly ask XWork to ditch that component now.  After I get 
rid of it, I want the next action that is Aware of it to instantiate a 
new one, even in the same session.

Anoop

On Dec 8, 2003, at 12:35 AM, Patrick Lightbody wrote:

> Have your component implement Disposable.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Anoop Ranganath
> Sent: Thursday, December 04, 2003 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] releasing a component
>
> How do I go about telling the IoC container to release a component?
> For example, I have a List I am maintaining on the session.  In a
> particular action, I process the list and then I am done with it.
> Right now, it seems the only option is to take the List and remove
each
> item.  If I set the instance in the action to null, the
> ComponentManager still has a handle to the original object.
>
> I'd like it to release the instance, and then if that component is
ever
> needed again, instantiate a new one.
>
> Thanks,
> Anoop
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to