I have a Component with a read/writable property that is of a registered component type. Windsor is trying to resolve this as a dependency even though it is not. I really don't want property injection at all (right now at least). Can I turn this form of resolution off entirely?
You can either use DoNotWire attribute on properties you don't want to wire, or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you want none of your properties on that component to be injected
> I have a Component with a read/writable property that is of a > registered component type. Windsor is trying to resolve this as a > dependency even though it is not. I really don’t want property > injection at all (right now at least). Can I turn this form of > resolution off entirely?
> Thanks,
> Ryan
> -- > You received this message because you are subscribed to the Google > Groups "Castle Project Users" group. > To post to this group, send email to > castle-project-users@googlegroups.com. > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
Is there a way at that in the AllTypes registration syntax? I've tried a custom facility setting this property in both the ComponentModelCreated event and the ComponentRegistered event with no luck.
From: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof Kozmic Sent: Wednesday, January 27, 2010 12:45 PM To: castle-project-users@googlegroups.com Subject: Re: Turn off property injection/resolution
Ryan - yes you can.
You can either use DoNotWire attribute on properties you don't want to wire, or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you want none of your properties on that component to be injected
Krzysztof
On 2010-01-27 18:15, Ryan Cromwell wrote:
I have a Component with a read/writable property that is of a registered component type. Windsor is trying to resolve this as a dependency even though it is not. I really don't want property injection at all (right now at least). Can I turn this form of resolution off entirely?
Thanks,
Ryan
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
> Is there a way at that in the AllTypes registration syntax? I've tried a > custom facility setting this property in both the ComponentModelCreated > event and the ComponentRegistered event with no luck.
> From: castle-project-users@googlegroups.com > [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof > Kozmic > Sent: Wednesday, January 27, 2010 12:45 PM > To: castle-project-users@googlegroups.com > Subject: Re: Turn off property injection/resolution
> Ryan - yes you can.
> You can either use DoNotWire attribute on properties you don't want to > wire, > or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you > want none of your properties on that component to be injected
> Krzysztof
> On 2010-01-27 18:15, Ryan Cromwell wrote:
> I have a Component with a read/writable property that is of a registered > component type. Windsor is trying to resolve this as a dependency even > though it is not. I really don't want property injection at all (right now > at least). Can I turn this form of resolution off entirely?
> Thanks,
> Ryan
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> Is there a way at that in the AllTypes registration syntax? I've tried a > custom facility setting this property in both the ComponentModelCreated > event and the ComponentRegistered event with no luck.
> From: castle-project-users@googlegroups.com > [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof Kozmic > Sent: Wednesday, January 27, 2010 12:45 PM > To: castle-project-users@googlegroups.com > Subject: Re: Turn off property injection/resolution
> Ryan - yes you can.
> You can either use DoNotWire attribute on properties you don't want to wire, > or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you > want none of your properties on that component to be injected
> Krzysztof
> On 2010-01-27 18:15, Ryan Cromwell wrote:
> I have a Component with a read/writable property that is of a registered > component type. Windsor is trying to resolve this as a dependency even > though it is not. I really don't want property injection at all (right now > at least). Can I turn this form of resolution off entirely?
>> Is there a way at that in the AllTypes registration syntax? I've tried a >> custom facility setting this property in both the ComponentModelCreated >> event and the ComponentRegistered event with no luck.
>> From: castle-project-users@googlegroups.com >> [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof >> Kozmic >> Sent: Wednesday, January 27, 2010 12:45 PM >> To: castle-project-users@googlegroups.com >> Subject: Re: Turn off property injection/resolution
>> Ryan - yes you can.
>> You can either use DoNotWire attribute on properties you don't want to >> wire, >> or set model.InspectionBehavior to PropertiesInspectionBehavior.None if >> you >> want none of your properties on that component to be injected
>> Krzysztof
>> On 2010-01-27 18:15, Ryan Cromwell wrote:
>> I have a Component with a read/writable property that is of a registered >> component type. Windsor is trying to resolve this as a dependency even >> though it is not. I really don't want property injection at all (right >> now >> at least). Can I turn this form of resolution off entirely?
>> Thanks,
>> Ryan
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
Which kernel event is best to do that in for the facility? I had been setting the InspectionBehavior, but it seems to have no affect (in ComponentCreated and/or ComponentRegistered).
From: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Ayende Rahien Sent: Wednesday, January 27, 2010 1:38 PM To: castle-project-users@googlegroups.com Subject: Re: Turn off property injection/resolution
Is there a way at that in the AllTypes registration syntax? I've tried a custom facility setting this property in both the ComponentModelCreated event and the ComponentRegistered event with no luck.
From: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof Kozmic Sent: Wednesday, January 27, 2010 12:45 PM To: castle-project-users@googlegroups.com Subject: Re: Turn off property injection/resolution
Ryan - yes you can.
You can either use DoNotWire attribute on properties you don't want to wire, or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you want none of your properties on that component to be injected
Krzysztof
On 2010-01-27 18:15, Ryan Cromwell wrote:
I have a Component with a read/writable property that is of a registered component type. Windsor is trying to resolve this as a dependency even though it is not. I really don't want property injection at all (right now at least). Can I turn this form of resolution off entirely?
Thanks,
Ryan
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com <mailto:castle-project-users%2Bunsubscribe@googlegroups.com> . For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
> Which kernel event is best to do that in for the facility? I had been > setting the InspectionBehavior, but it seems to have no affect (in > ComponentCreated and/or ComponentRegistered).
> *From:* castle-project-users@googlegroups.com [mailto: > castle-project-users@googlegroups.com] *On Behalf Of *Ayende Rahien > *Sent:* Wednesday, January 27, 2010 1:38 PM
> *To:* castle-project-users@googlegroups.com > *Subject:* Re: Turn off property injection/resolution
> Is there a way at that in the AllTypes registration syntax? I've tried a > custom facility setting this property in both the ComponentModelCreated > event and the ComponentRegistered event with no luck.
> From: castle-project-users@googlegroups.com > [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof > Kozmic > Sent: Wednesday, January 27, 2010 12:45 PM > To: castle-project-users@googlegroups.com > Subject: Re: Turn off property injection/resolution
> Ryan - yes you can.
> You can either use DoNotWire attribute on properties you don't want to > wire, > or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you > want none of your properties on that component to be injected
> Krzysztof
> On 2010-01-27 18:15, Ryan Cromwell wrote:
> I have a Component with a read/writable property that is of a registered > component type. Windsor is trying to resolve this as a dependency even > though it is not. I really don't want property injection at all (right now > at least). Can I turn this form of resolution off entirely?
> Thanks,
> Ryan
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to castle-project-users@googlegroups.com > . > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com<castle-project-users%2Bun subscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
Never mind. Just did it in Faciliities Init method and we're golden.
Thanks guys.
From: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Ayende Rahien Sent: Wednesday, January 27, 2010 1:38 PM To: castle-project-users@googlegroups.com Subject: Re: Turn off property injection/resolution
Is there a way at that in the AllTypes registration syntax? I've tried a custom facility setting this property in both the ComponentModelCreated event and the ComponentRegistered event with no luck.
From: castle-project-users@googlegroups.com [mailto:castle-project-users@googlegroups.com] On Behalf Of Krzysztof Kozmic Sent: Wednesday, January 27, 2010 12:45 PM To: castle-project-users@googlegroups.com Subject: Re: Turn off property injection/resolution
Ryan - yes you can.
You can either use DoNotWire attribute on properties you don't want to wire, or set model.InspectionBehavior to PropertiesInspectionBehavior.None if you want none of your properties on that component to be injected
Krzysztof
On 2010-01-27 18:15, Ryan Cromwell wrote:
I have a Component with a read/writable property that is of a registered component type. Windsor is trying to resolve this as a dependency even though it is not. I really don't want property injection at all (right now at least). Can I turn this form of resolution off entirely?
Thanks,
Ryan
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com <mailto:castle-project-users%2Bunsubscribe@googlegroups.com> . For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com. To unsubscribe from this group, send email to castle-project-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
> Is there a way at that in the AllTypes registration syntax? > I've tried a > custom facility setting this property in both the > ComponentModelCreated > event and the ComponentRegistered event with no luck.
> From: castle-project-users@googlegroups.com > <mailto:castle-project-users@googlegroups.com> > [mailto:castle-project-users@googlegroups.com > <mailto:castle-project-users@googlegroups.com>] On Behalf Of > Krzysztof Kozmic > Sent: Wednesday, January 27, 2010 12:45 PM > To: castle-project-users@googlegroups.com > <mailto:castle-project-users@googlegroups.com> > Subject: Re: Turn off property injection/resolution
> Ryan - yes you can.
> You can either use DoNotWire attribute on properties you don't > want to wire, > or set model.InspectionBehavior to > PropertiesInspectionBehavior.None if you > want none of your properties on that component to be injected
> Krzysztof
> On 2010-01-27 18:15, Ryan Cromwell wrote:
> I have a Component with a read/writable property that is of a > registered > component type. Windsor is trying to resolve this as a > dependency even > though it is not. I really don't want property injection at > all (right now > at least). Can I turn this form of resolution off entirely?
> Thanks,
> Ryan
> -- > You received this message because you are subscribed to the Google > Groups "Castle Project Users" group. > To post to this group, send email to > castle-project-users@googlegroups.com > <mailto:castle-project-users@googlegroups.com>. > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com > <mailto:castle-project-users%2Bunsubscribe@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.
> -- > You received this message because you are subscribed to the Google > Groups "Castle Project Users" group. > To post to this group, send email to > castle-project-users@googlegroups.com. > To unsubscribe from this group, send email to > castle-project-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en.