Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Windsor: is it ok to release components after creation with Typed Factory? (from stackoverflow)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael S.  
View profile  
 More options Nov 14 2012, 8:02 pm
From: "Michael S." <outspi...@gmail.com>
Date: Wed, 14 Nov 2012 17:02:04 -0800 (PST)
Local: Wed, Nov 14 2012 8:02 pm
Subject: Windsor: is it ok to release components after creation with Typed Factory? (from stackoverflow)

I'm impressed how quickly I found help here and want to ask another
question. Acutally it was posted on
http://stackoverflow.com/questions/13372142/castle-windsor-is-it-ok-t...
The scenario is to allocate a collection of objects created by typed
factory, do some work not involving objects directly (write database), use
objects in the collection (make web-service calls by means of those
objects) and release them. I experience difficulties with releasing the
collection of objects safely. Does typed factory support releasing a
collection/array of components? Or what may happen if I release component
right after I create it and the component has other components injected?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Krzysztof Kozmic  
View profile  
 More options Nov 14 2012, 8:07 pm
From: Krzysztof Kozmic <krzysztof.koz...@gmail.com>
Date: Thu, 15 Nov 2012 11:07:41 +1000
Local: Wed, Nov 14 2012 8:07 pm
Subject: Re: Windsor: is it ok to release components after creation with Typed Factory? (from stackoverflow)

typed factory won't currently release collection of object, just individual objects.

Releasing an object doesn't mean the entire graph will be released. Lifestyle of each individual leaf in the graph is taken into account so it is generally safe to call release anytime you're done using the root object of the graph.

--
Krzysztof Kozmic


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael S.  
View profile  
 More options Nov 14 2012, 8:23 pm
From: "Michael S." <outspi...@gmail.com>
Date: Wed, 14 Nov 2012 17:23:53 -0800 (PST)
Local: Wed, Nov 14 2012 8:23 pm
Subject: Re: Windsor: is it ok to release components after creation with Typed Factory? (from stackoverflow)

Got it. And vice versa: it's generally unsafe to release object before it's
going to be used, right?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Krzysztof Kozmic  
View profile  
 More options Nov 14 2012, 8:29 pm
From: Krzysztof Kozmic <krzysztof.koz...@gmail.com>
Date: Thu, 15 Nov 2012 11:29:01 +1000
Local: Wed, Nov 14 2012 8:29 pm
Subject: Re: Windsor: is it ok to release components after creation with Typed Factory? (from stackoverflow)

yes,  

releasing an object is like returning a rental car. It's stating "hey, I don't need that object anymore, do as you please with it
"  

--  
Krzysztof Kozmic


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »