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
Turn off property injection/resolution
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
  10 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
 
Ryan Cromwell  
View profile  
 More options Jan 27 2010, 12:15 pm
From: "Ryan Cromwell" <cromwellr...@hotmail.com>
Date: Wed, 27 Jan 2010 12:15:47 -0500
Local: Wed, Jan 27 2010 12:15 pm
Subject: Turn off property injection/resolution

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 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 Koźmic  
View profile  
 More options Jan 27 2010, 12:45 pm
From: Krzysztof Koźmic <krzysztof.koz...@gmail.com>
Date: Wed, 27 Jan 2010 18:45:08 +0100
Local: Wed, Jan 27 2010 12:45 pm
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:


 
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.
Ryan Cromwell  
View profile  
 More options Jan 27 2010, 1:24 pm
From: "Ryan Cromwell" <cromwellr...@hotmail.com>
Date: Wed, 27 Jan 2010 13:24:25 -0500
Local: Wed, Jan 27 2010 1:24 pm
Subject: RE: Turn off property injection/resolution

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: 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.

  winmail.dat
6K Download

 
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 Jan 27 2010, 1:30 pm
From: Ayende Rahien <aye...@ayende.com>
Date: Wed, 27 Jan 2010 20:30:05 +0200
Local: Wed, Jan 27 2010 1:30 pm
Subject: Re: Turn off property injection/resolution

You can write a facility that would remove the property inspector globally.

On Wed, Jan 27, 2010 at 8:24 PM, Ryan Cromwell <cromwellr...@hotmail.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.
Krzysztof Koźmic  
View profile  
 More options Jan 27 2010, 1:30 pm
From: Krzysztof Koźmic <krzysztof.koz...@gmail.com>
Date: Wed, 27 Jan 2010 19:30:29 +0100
Local: Wed, Jan 27 2010 1:30 pm
Subject: Re: Turn off property injection/resolution
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.Opti...

cheers,
Krzysztof

On 2010-01-27 19:24, Ryan Cromwell 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 Jan 27 2010, 1:37 pm
From: Ayende Rahien <aye...@ayende.com>
Date: Wed, 27 Jan 2010 20:37:31 +0200
Local: Wed, Jan 27 2010 1:37 pm
Subject: Re: Turn off property injection/resolution

Sure there is.

windsor.Kernel.ComponentModelBuilder.RemoveContributor(
windsor.Kernle.ComponentModelBuilder.Contributors.OfType<PropertiesDependen ciesModelInspector>().Single()
);

2010/1/27 Krzysztof Koźmic <krzysztof.koz...@gmail.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.
Ryan Cromwell  
View profile  
 More options Jan 27 2010, 1:40 pm
From: "Ryan Cromwell" <cromwellr...@hotmail.com>
Date: Wed, 27 Jan 2010 13:40:42 -0500
Local: Wed, Jan 27 2010 1:40 pm
Subject: RE: Turn off property injection/resolution

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

Sure there is.

windsor.Kernel.ComponentModelBuilder.RemoveContributor(

windsor.Kernle.ComponentModelBuilder.Contributors.OfType<PropertiesDependen c
iesModelInspector>().Single()

);

2010/1/27 Krzysztof Koźmic <krzysztof.koz...@gmail.com>

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.Opti...
pertyInjection

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: 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.


 
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 Jan 27 2010, 1:42 pm
From: Ayende Rahien <aye...@ayende.com>
Date: Wed, 27 Jan 2010 20:42:34 +0200
Local: Wed, Jan 27 2010 1:42 pm
Subject: Re: Turn off property injection/resolution

var windsor = new WindsorContainer();
// that code

// the rest.

On Wed, Jan 27, 2010 at 8:40 PM, Ryan Cromwell <cromwellr...@hotmail.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.
Ryan Cromwell  
View profile  
 More options Jan 27 2010, 1:43 pm
From: "Ryan Cromwell" <cromwellr...@hotmail.com>
Date: Wed, 27 Jan 2010 13:43:04 -0500
Local: Wed, Jan 27 2010 1:43 pm
Subject: RE: Turn off property injection/resolution

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

Sure there is.

windsor.Kernel.ComponentModelBuilder.RemoveContributor(

windsor.Kernle.ComponentModelBuilder.Contributors.OfType<PropertiesDependen c
iesModelInspector>().Single()

);

2010/1/27 Krzysztof Koźmic <krzysztof.koz...@gmail.com>

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.Opti...
pertyInjection

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: 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.


 
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 Koźmic  
View profile  
 More options Jan 27 2010, 1:49 pm
From: Krzysztof Koźmic <krzysztof.koz...@gmail.com>
Date: Wed, 27 Jan 2010 19:49:14 +0100
Local: Wed, Jan 27 2010 1:49 pm
Subject: Re: Turn off property injection/resolution

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:


 
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 »