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
ArraySubDependencyResolver
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
  Messages 1 - 25 of 28 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
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
 
ashmind  
View profile  
 More options Jul 2 2008, 1:42 pm
From: ashmind <ashm...@gmail.com>
Date: Wed, 2 Jul 2008 10:42:25 -0700 (PDT)
Local: Wed, Jul 2 2008 1:42 pm
Subject: ArraySubDependencyResolver
Hi All,

Could you please explain possible problems with having a built-in
ArraySubDependencyResolver in Castle?
While it is trivial to write one, I feel that it is one of the
essential DI features.

I can see following conceptual problems:
1. If you have a singleton consuming an service list, the actual
contents of service list in the singleton will depend on whether it
was resolved before all service implementations where registered.
2. If you have a Startable component, it will always get only single
element in service list if you register it before service
implementations.
3. If some service implementations can not be resolved, there is no
obvious answer on whether list-dependant component should fail its
Resolve or be resolved with available services only.

No one of these seems to be a feature showstopper.
Still, it would be very interesting for me to know if any other DI
framewrok had some interesting solutions to these issues.

Thanks in advance,

--
Andrey Shchekin
http://blog.ashmind.com


 
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.
Ayende Rahien  
View profile  
 More options Jul 2 2008, 2:13 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Wed, 2 Jul 2008 21:13:47 +0300
Local: Wed, Jul 2 2008 2:13 pm
Subject: Re: ArraySubDependencyResolver

+1 from me.


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 2:25 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 15:25:38 -0300
Local: Wed, Jul 2 2008 2:25 pm
Subject: Re: ArraySubDependencyResolver
I can add the resolver to the castle's code base. What I wont do is
adding it as a resolver by default. It might break existing behavior.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Craig Neuwirt  
View profile  
 More options Jul 2 2008, 2:37 pm
From: "Craig Neuwirt" <cneuw...@gmail.com>
Date: Wed, 2 Jul 2008 13:37:06 -0500
Local: Wed, Jul 2 2008 2:37 pm
Subject: Re: ArraySubDependencyResolver

FYI, I tried to use that resolver once and noticed it created a circular
dependency for a specific situation.  I can't remember off the top of my
head, but if it gets checked in, i'll try to find my notes and add a test
case for that and hopefully a resolution.

On Wed, Jul 2, 2008 at 1:25 PM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 2:47 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 15:47:17 -0300
Local: Wed, Jul 2 2008 2:47 pm
Subject: Re: ArraySubDependencyResolver
A depends on IService[]
B, C and D implements IService
if one of those depend on A, you have a problem.

I wouldnt be worried about it though. One of the behaviors that I dislike is:

A asks for IService[]. If one of the IService implementation is in a
waiting state, it wont be included. Maybe I should throw an
exception... I dont know. Last time I had this I had to debug into to
see why it wasnt returning an implementation. It's the kind of silent
failure that I despise.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Craig Neuwirt  
View profile  
 More options Jul 2 2008, 2:51 pm
From: "Craig Neuwirt" <cneuw...@gmail.com>
Date: Wed, 2 Jul 2008 13:51:25 -0500
Local: Wed, Jul 2 2008 2:51 pm
Subject: Re: ArraySubDependencyResolver

That scenario sounds familiar and may be what I experienced.

Did you get a circularity exception in this case too?

On Wed, Jul 2, 2008 at 1:47 PM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 3:07 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 16:07:07 -0300
Local: Wed, Jul 2 2008 3:07 pm
Subject: Re: ArraySubDependencyResolver
My guess is that you get a stack overflow...

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Ayende Rahien  
View profile  
 More options Jul 2 2008, 3:11 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Wed, 2 Jul 2008 22:11:22 +0300
Local: Wed, Jul 2 2008 3:11 pm
Subject: Re: ArraySubDependencyResolver

No, we have a check for that

On Wed, Jul 2, 2008 at 10:07 PM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 3:21 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 16:21:24 -0300
Local: Wed, Jul 2 2008 3:21 pm
Subject: Re: ArraySubDependencyResolver
from this http://hammett.castleproject.org/?p=257 I dont see the
creation context being propagated to the resolveall. how would the
circular problem be detected in this situation?

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Craig Neuwirt  
View profile  
 More options Jul 2 2008, 3:27 pm
From: "Craig Neuwirt" <cneuw...@gmail.com>
Date: Wed, 2 Jul 2008 14:27:46 -0500
Local: Wed, Jul 2 2008 3:27 pm
Subject: Re: ArraySubDependencyResolver

I was suprised when I saw a Ciculariry reported too, but I am certain that
was the exception.   If I remember, the stack trace looked like overflow.
Either way, i'll try and reproduce and go from there.

thanks

On 7/2/08, Hamilton Verissimo <hamm...@castlestronghold.com> wrote:


 
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.
Ayende Rahien  
View profile  
 More options Jul 2 2008, 3:30 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Wed, 2 Jul 2008 22:30:50 +0300
Local: Wed, Jul 2 2008 3:30 pm
Subject: Re: ArraySubDependencyResolver

Hm, good point. It probably should.

On Wed, Jul 2, 2008 at 10:21 PM, Hamilton Verissimo <


 
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.
Victor Kornov  
View profile  
 More options Jul 2 2008, 3:32 pm
From: "Victor Kornov" <wee...@gmail.com>
Date: Wed, 2 Jul 2008 23:32:30 +0400
Local: Wed, Jul 2 2008 3:32 pm
Subject: Re: ArraySubDependencyResolver

This functionality could be packaged in a facility which will have a switch
to throw or not in such cases.

On Wed, Jul 2, 2008 at 10:47 PM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 3:38 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 16:38:15 -0300
Local: Wed, Jul 2 2008 3:38 pm
Subject: Re: ArraySubDependencyResolver
black magic then.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Craig Neuwirt  
View profile  
 More options Jul 2 2008, 3:47 pm
From: "Craig Neuwirt" <cneuw...@gmail.com>
Date: Wed, 2 Jul 2008 14:47:17 -0500
Local: Wed, Jul 2 2008 3:47 pm
Subject: Re: ArraySubDependencyResolver

Eventually, you'll get old like me and tour memory will fade too.. :-)

On 7/2/08, Hamilton Verissimo <hamm...@castlestronghold.com> wrote:


 
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.
ashmind  
View profile  
 More options Jul 2 2008, 3:53 pm
From: ashmind <ashm...@gmail.com>
Date: Wed, 2 Jul 2008 12:53:10 -0700 (PDT)
Local: Wed, Jul 2 2008 3:53 pm
Subject: Re: ArraySubDependencyResolver
I understand the concern, but what behavior might be broken?

On Jul 2, 10:25 pm, "Hamilton Verissimo"


 
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.
ashmind  
View profile  
 More options Jul 2 2008, 4:04 pm
From: ashmind <ashm...@gmail.com>
Date: Wed, 2 Jul 2008 13:04:15 -0700 (PDT)
Local: Wed, Jul 2 2008 4:04 pm
Subject: Re: ArraySubDependencyResolver
I think this functionality is as essential as open generic types
support that is already built in.
So making it a facility is, possibly, making things too complex for a
basic-level feature.
I understand the compatibility concern, but I think it sometimes gives
too much edge to the new, unconcerned projects, and too much incentive
to build a new project instead of contributing to the existing one.

However, a switch would be definitely useful, so I am not sure.

On Jul 2, 11:32 pm, "Victor Kornov" <wee...@gmail.com> wrote:


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 4:33 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 17:33:23 -0300
Local: Wed, Jul 2 2008 4:33 pm
Subject: Re: ArraySubDependencyResolver
The worst scenarios are the ones I can't imagine. the microkernel
extensility seems to be more in use than what I originally planned.
People usually rely on ISubDependencyResolver and converters to
customize behavior. Introducing this in a build might impact/break
their extensions.. It's like the same reason MS refuses to fix things
that are unarguably broken..

If we held a vote on it, though, and it's approved, I'd be more
comfortable adding it in.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Victor Kornov  
View profile  
 More options Jul 2 2008, 4:40 pm
From: "Victor Kornov" <wee...@gmail.com>
Date: Thu, 3 Jul 2008 00:40:26 +0400
Local: Wed, Jul 2 2008 4:40 pm
Subject: Re: ArraySubDependencyResolver

You give people something and they immediately start to abuse it. And do all
sorts of things unimaginable.

Standard facility would be OK for me, that way it will be optional.

On Thu, Jul 3, 2008 at 12:33 AM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 5:33 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 18:33:27 -0300
Local: Wed, Jul 2 2008 5:33 pm
Subject: Re: ArraySubDependencyResolver
I wont go that far, I just originally thought that only advanced users
would go and extend the container, and it seems that almost everyone
does. It's cool.

It does impose a challenge whenever we want to make a change.

On Wed, Jul 2, 2008 at 5:40 PM, Victor Kornov <wee...@gmail.com> wrote:
> You give people something and they immediately start to abuse it. And do all
> sorts of things unimaginable.

> Standard facility would be OK for me, that way it will be optional.

> On Thu, Jul 3, 2008 at 12:33 AM, Hamilton Verissimo
> <hamm...@castlestronghold.com> wrote:

>> The worst scenarios are the ones I can't imagine. the microkernel
>> extensility seems to be more in use than what I originally planned.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Ayende Rahien  
View profile  
 More options Jul 2 2008, 5:36 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Thu, 3 Jul 2008 00:36:15 +0300
Local: Wed, Jul 2 2008 5:36 pm
Subject: Re: ArraySubDependencyResolver

I would classify most of the people who use Windsor as advance users.

On Thu, Jul 3, 2008 at 12:33 AM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 5:40 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 18:40:10 -0300
Local: Wed, Jul 2 2008 5:40 pm
Subject: Re: ArraySubDependencyResolver
Why?

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
Ayende Rahien  
View profile  
 More options Jul 2 2008, 5:45 pm
From: "Ayende Rahien" <aye...@ayende.com>
Date: Thu, 3 Jul 2008 00:45:14 +0300
Local: Wed, Jul 2 2008 5:45 pm
Subject: Re: ArraySubDependencyResolver

Because it is still seen in such a fashion, at least in the .Net circles.
It is gaining acceptance, but it still a high end solution.
I don't think it should be, but that is a different matter.

On Thu, Jul 3, 2008 at 12:40 AM, Hamilton Verissimo <


 
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.
William C. Pierce  
View profile  
 More options Jul 2 2008, 5:57 pm
From: "William C. Pierce" <wcpie...@gmail.com>
Date: Wed, 2 Jul 2008 15:57:10 -0600
Local: Wed, Jul 2 2008 5:57 pm
Subject: Re: ArraySubDependencyResolver

There is no visual designer or drag-n-drop configuration tool for Windsor.
That automatically makes anyone who uses it an advanced user.

On Wed, Jul 2, 2008 at 3:40 PM, Hamilton Verissimo <


 
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.
Hamilton Verissimo  
View profile  
 More options Jul 2 2008, 6:01 pm
From: "Hamilton Verissimo" <hamm...@castlestronghold.com>
Date: Wed, 2 Jul 2008 19:01:43 -0300
Local: Wed, Jul 2 2008 6:01 pm
Subject: Re: ArraySubDependencyResolver
That's just your perception. Based on the questions on this list and
forums I'm sure we have all levels of users using it.

Not sure about liking it, though :-)

On Wed, Jul 2, 2008 at 6:45 PM, Ayende Rahien <aye...@ayende.com> wrote:
> Because it is still seen in such a fashion, at least in the .Net circles.
> It is gaining acceptance, but it still a high end solution.
> I don't think it should be, but that is a different matter.

--
Cheers,
hamilton verissimo
hamm...@castlestronghold.com
http://www.castlestronghold.com/

 
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.
ashmind  
View profile  
 More options Jul 3 2008, 1:51 am
From: ashmind <ashm...@gmail.com>
Date: Wed, 2 Jul 2008 22:51:30 -0700 (PDT)
Local: Thurs, Jul 3 2008 1:51 am
Subject: Re: ArraySubDependencyResolver
I think anyone who ever written a SubDependencyResolver is a person
who can fix it if something has gone wrong.
It is an advanced topic.

The MS position is understandable, but they have a lot more users and
skill differentiation is more deep.
And their position basically means API pollution and confusion for the
new users -- DateTime or DateTimeOffset, what to choose.
They can not do otherwise, but lesser frameworks can.

On Jul 3, 12:33 am, "Hamilton Verissimo"


 
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.
Messages 1 - 25 of 28   Newer >
« Back to Discussions « Newer topic     Older topic »