Yes, as long as you want to do it per container.
If you want more fine grained control, this is not helpful
On 2010-01-27 19:37, Ayende Rahien wrote:
Sure there is.
windsor.Kernel.ComponentModelBuilder.RemoveContributor(
windsor.Kernle.ComponentModelBuilder.Contributors.OfType<PropertiesDependenciesModelInspector>().Single()
);
2010/1/27 Krzysztof Koźmic <[email protected]
<mailto:[email protected]>>
There's no _nice_ way in Windsor itself. You can use
AttributeDescriptor IIRC.
There's also a custom facility in contrib that does that:
http://using.castleproject.org/display/Contrib/Castle.Facilities.OptionalPropertyInjection
cheers,
Krzysztof
On 2010-01-27 19:24, Ryan Cromwell wrote:
Thanks Krzysztof,
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: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]>] On Behalf Of
Krzysztof Kozmic
Sent: Wednesday, January 27, 2010 12:45 PM
To: [email protected]
<mailto:[email protected]>
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
[email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:castle-project-users%[email protected]>.
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
[email protected].
To unsubscribe from this group, send email to
[email protected].
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.